disgroove 1.3.3-dev.2 → 1.3.3-test.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/package.json +1 -1
  2. package/package.json +1 -1
  3. package/dist/lib/Client.d.ts +0 -234
  4. package/dist/lib/Client.js +0 -256
  5. package/dist/lib/Client.js.map +0 -1
  6. package/dist/lib/constants.d.ts +0 -1084
  7. package/dist/lib/constants.js +0 -1163
  8. package/dist/lib/constants.js.map +0 -1
  9. package/dist/lib/gateway/Shard.d.ts +0 -25
  10. package/dist/lib/gateway/Shard.js +0 -522
  11. package/dist/lib/gateway/Shard.js.map +0 -1
  12. package/dist/lib/gateway/ShardsManager.d.ts +0 -5
  13. package/dist/lib/gateway/ShardsManager.js +0 -13
  14. package/dist/lib/gateway/ShardsManager.js.map +0 -1
  15. package/dist/lib/gateway/index.d.ts +0 -2
  16. package/dist/lib/gateway/index.js +0 -19
  17. package/dist/lib/gateway/index.js.map +0 -1
  18. package/dist/lib/index.d.ts +0 -7
  19. package/dist/lib/index.js +0 -24
  20. package/dist/lib/index.js.map +0 -1
  21. package/dist/lib/rest/CDN.d.ts +0 -21
  22. package/dist/lib/rest/CDN.js +0 -46
  23. package/dist/lib/rest/CDN.js.map +0 -1
  24. package/dist/lib/rest/Endpoints.d.ts +0 -94
  25. package/dist/lib/rest/Endpoints.js +0 -211
  26. package/dist/lib/rest/Endpoints.js.map +0 -1
  27. package/dist/lib/rest/REST.d.ts +0 -22
  28. package/dist/lib/rest/REST.js +0 -35
  29. package/dist/lib/rest/REST.js.map +0 -1
  30. package/dist/lib/rest/RequestsManager.d.ts +0 -17
  31. package/dist/lib/rest/RequestsManager.js +0 -124
  32. package/dist/lib/rest/RequestsManager.js.map +0 -1
  33. package/dist/lib/rest/index.d.ts +0 -4
  34. package/dist/lib/rest/index.js +0 -34
  35. package/dist/lib/rest/index.js.map +0 -1
  36. package/dist/lib/structures/Application.d.ts +0 -174
  37. package/dist/lib/structures/Application.js +0 -328
  38. package/dist/lib/structures/Application.js.map +0 -1
  39. package/dist/lib/structures/ApplicationCommand.d.ts +0 -45
  40. package/dist/lib/structures/ApplicationCommand.js +0 -127
  41. package/dist/lib/structures/ApplicationCommand.js.map +0 -1
  42. package/dist/lib/structures/AuditLog.d.ts +0 -20
  43. package/dist/lib/structures/AuditLog.js +0 -76
  44. package/dist/lib/structures/AuditLog.js.map +0 -1
  45. package/dist/lib/structures/AutoModerationRule.d.ts +0 -34
  46. package/dist/lib/structures/AutoModerationRule.js +0 -96
  47. package/dist/lib/structures/AutoModerationRule.js.map +0 -1
  48. package/dist/lib/structures/Base.d.ts +0 -17
  49. package/dist/lib/structures/Base.js +0 -31
  50. package/dist/lib/structures/Base.js.map +0 -1
  51. package/dist/lib/structures/Channel.d.ts +0 -253
  52. package/dist/lib/structures/Channel.js +0 -591
  53. package/dist/lib/structures/Channel.js.map +0 -1
  54. package/dist/lib/structures/ClientApplication.d.ts +0 -150
  55. package/dist/lib/structures/ClientApplication.js +0 -241
  56. package/dist/lib/structures/ClientApplication.js.map +0 -1
  57. package/dist/lib/structures/Emoji.d.ts +0 -28
  58. package/dist/lib/structures/Emoji.js +0 -79
  59. package/dist/lib/structures/Emoji.js.map +0 -1
  60. package/dist/lib/structures/Entitlement.d.ts +0 -24
  61. package/dist/lib/structures/Entitlement.js +0 -68
  62. package/dist/lib/structures/Entitlement.js.map +0 -1
  63. package/dist/lib/structures/Guild.d.ts +0 -462
  64. package/dist/lib/structures/Guild.js +0 -1095
  65. package/dist/lib/structures/Guild.js.map +0 -1
  66. package/dist/lib/structures/GuildMember.d.ts +0 -50
  67. package/dist/lib/structures/GuildMember.js +0 -149
  68. package/dist/lib/structures/GuildMember.js.map +0 -1
  69. package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -49
  70. package/dist/lib/structures/GuildScheduledEvent.js +0 -118
  71. package/dist/lib/structures/GuildScheduledEvent.js.map +0 -1
  72. package/dist/lib/structures/GuildTemplate.d.ts +0 -32
  73. package/dist/lib/structures/GuildTemplate.js +0 -76
  74. package/dist/lib/structures/GuildTemplate.js.map +0 -1
  75. package/dist/lib/structures/Integration.d.ts +0 -30
  76. package/dist/lib/structures/Integration.js +0 -102
  77. package/dist/lib/structures/Integration.js.map +0 -1
  78. package/dist/lib/structures/Interaction.d.ts +0 -76
  79. package/dist/lib/structures/Interaction.js +0 -345
  80. package/dist/lib/structures/Interaction.js.map +0 -1
  81. package/dist/lib/structures/Invite.d.ts +0 -28
  82. package/dist/lib/structures/Invite.js +0 -86
  83. package/dist/lib/structures/Invite.js.map +0 -1
  84. package/dist/lib/structures/Message.d.ts +0 -84
  85. package/dist/lib/structures/Message.js +0 -300
  86. package/dist/lib/structures/Message.js.map +0 -1
  87. package/dist/lib/structures/Role.d.ts +0 -37
  88. package/dist/lib/structures/Role.js +0 -90
  89. package/dist/lib/structures/Role.js.map +0 -1
  90. package/dist/lib/structures/SKU.d.ts +0 -23
  91. package/dist/lib/structures/SKU.js +0 -63
  92. package/dist/lib/structures/SKU.js.map +0 -1
  93. package/dist/lib/structures/StageInstance.d.ts +0 -24
  94. package/dist/lib/structures/StageInstance.js +0 -57
  95. package/dist/lib/structures/StageInstance.js.map +0 -1
  96. package/dist/lib/structures/Sticker.d.ts +0 -31
  97. package/dist/lib/structures/Sticker.js +0 -86
  98. package/dist/lib/structures/Sticker.js.map +0 -1
  99. package/dist/lib/structures/Team.d.ts +0 -14
  100. package/dist/lib/structures/Team.js +0 -39
  101. package/dist/lib/structures/Team.js.map +0 -1
  102. package/dist/lib/structures/TestEntitlement.d.ts +0 -23
  103. package/dist/lib/structures/TestEntitlement.js +0 -61
  104. package/dist/lib/structures/TestEntitlement.js.map +0 -1
  105. package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
  106. package/dist/lib/structures/UnavailableGuild.js +0 -25
  107. package/dist/lib/structures/UnavailableGuild.js.map +0 -1
  108. package/dist/lib/structures/User.d.ts +0 -63
  109. package/dist/lib/structures/User.js +0 -177
  110. package/dist/lib/structures/User.js.map +0 -1
  111. package/dist/lib/structures/VoiceState.d.ts +0 -26
  112. package/dist/lib/structures/VoiceState.js +0 -70
  113. package/dist/lib/structures/VoiceState.js.map +0 -1
  114. package/dist/lib/structures/Webhook.d.ts +0 -84
  115. package/dist/lib/structures/Webhook.js +0 -239
  116. package/dist/lib/structures/Webhook.js.map +0 -1
  117. package/dist/lib/structures/index.d.ts +0 -27
  118. package/dist/lib/structures/index.js +0 -44
  119. package/dist/lib/structures/index.js.map +0 -1
  120. package/dist/lib/types/application-command.d.ts +0 -102
  121. package/dist/lib/types/application-command.js +0 -3
  122. package/dist/lib/types/application-command.js.map +0 -1
  123. package/dist/lib/types/application-role-connection-metadata.d.ts +0 -18
  124. package/dist/lib/types/application-role-connection-metadata.js +0 -3
  125. package/dist/lib/types/application-role-connection-metadata.js.map +0 -1
  126. package/dist/lib/types/application.d.ts +0 -66
  127. package/dist/lib/types/application.js +0 -3
  128. package/dist/lib/types/application.js.map +0 -1
  129. package/dist/lib/types/audit-log.d.ts +0 -82
  130. package/dist/lib/types/audit-log.js +0 -3
  131. package/dist/lib/types/audit-log.js.map +0 -1
  132. package/dist/lib/types/auto-moderation.d.ts +0 -65
  133. package/dist/lib/types/auto-moderation.js +0 -3
  134. package/dist/lib/types/auto-moderation.js.map +0 -1
  135. package/dist/lib/types/channel.d.ts +0 -456
  136. package/dist/lib/types/channel.js +0 -3
  137. package/dist/lib/types/channel.js.map +0 -1
  138. package/dist/lib/types/emoji.d.ts +0 -22
  139. package/dist/lib/types/emoji.js +0 -3
  140. package/dist/lib/types/emoji.js.map +0 -1
  141. package/dist/lib/types/entitlements.d.ts +0 -32
  142. package/dist/lib/types/entitlements.js +0 -3
  143. package/dist/lib/types/entitlements.js.map +0 -1
  144. package/dist/lib/types/gateway-events.d.ts +0 -805
  145. package/dist/lib/types/gateway-events.js +0 -3
  146. package/dist/lib/types/gateway-events.js.map +0 -1
  147. package/dist/lib/types/guild-scheduled-event.d.ts +0 -57
  148. package/dist/lib/types/guild-scheduled-event.js +0 -3
  149. package/dist/lib/types/guild-scheduled-event.js.map +0 -1
  150. package/dist/lib/types/guild-template.d.ts +0 -28
  151. package/dist/lib/types/guild-template.js +0 -3
  152. package/dist/lib/types/guild-template.js.map +0 -1
  153. package/dist/lib/types/guild.d.ts +0 -333
  154. package/dist/lib/types/guild.js +0 -3
  155. package/dist/lib/types/guild.js.map +0 -1
  156. package/dist/lib/types/index.d.ts +0 -23
  157. package/dist/lib/types/index.js +0 -40
  158. package/dist/lib/types/index.js.map +0 -1
  159. package/dist/lib/types/interaction.d.ts +0 -170
  160. package/dist/lib/types/interaction.js +0 -3
  161. package/dist/lib/types/interaction.js.map +0 -1
  162. package/dist/lib/types/invite.d.ts +0 -59
  163. package/dist/lib/types/invite.js +0 -3
  164. package/dist/lib/types/invite.js.map +0 -1
  165. package/dist/lib/types/message-components.d.ts +0 -100
  166. package/dist/lib/types/message-components.js +0 -3
  167. package/dist/lib/types/message-components.js.map +0 -1
  168. package/dist/lib/types/role.d.ts +0 -47
  169. package/dist/lib/types/role.js +0 -3
  170. package/dist/lib/types/role.js.map +0 -1
  171. package/dist/lib/types/sku.d.ts +0 -30
  172. package/dist/lib/types/sku.js +0 -3
  173. package/dist/lib/types/sku.js.map +0 -1
  174. package/dist/lib/types/stage-instance.d.ts +0 -20
  175. package/dist/lib/types/stage-instance.js +0 -3
  176. package/dist/lib/types/stage-instance.js.map +0 -1
  177. package/dist/lib/types/sticker.d.ts +0 -61
  178. package/dist/lib/types/sticker.js +0 -3
  179. package/dist/lib/types/sticker.js.map +0 -1
  180. package/dist/lib/types/team.d.ts +0 -30
  181. package/dist/lib/types/team.js +0 -3
  182. package/dist/lib/types/team.js.map +0 -1
  183. package/dist/lib/types/user.d.ts +0 -77
  184. package/dist/lib/types/user.js +0 -3
  185. package/dist/lib/types/user.js.map +0 -1
  186. package/dist/lib/types/voice.d.ts +0 -47
  187. package/dist/lib/types/voice.js +0 -3
  188. package/dist/lib/types/voice.js.map +0 -1
  189. package/dist/lib/types/webhook.d.ts +0 -31
  190. package/dist/lib/types/webhook.js +0 -3
  191. package/dist/lib/types/webhook.js.map +0 -1
  192. package/dist/lib/utils/Util.d.ts +0 -15
  193. package/dist/lib/utils/Util.js +0 -543
  194. package/dist/lib/utils/Util.js.map +0 -1
  195. package/dist/lib/utils/errors.d.ts +0 -12
  196. package/dist/lib/utils/errors.js +0 -25
  197. package/dist/lib/utils/errors.js.map +0 -1
  198. package/dist/lib/utils/index.d.ts +0 -2
  199. package/dist/lib/utils/index.js +0 -19
  200. package/dist/lib/utils/index.js.map +0 -1
  201. package/examples/applicationCommands.js +0 -43
  202. package/examples/buttons.js +0 -70
  203. package/examples/embeds.js +0 -36
  204. package/examples/ephemeralMessages.js +0 -32
  205. package/examples/files.js +0 -36
  206. package/examples/modalSubmit.js +0 -62
  207. package/examples/permissions.js +0 -41
  208. package/examples/selectMenus.js +0 -160
  209. package/examples/text.txt +0 -1
  210. package/lib/Client.ts +0 -616
  211. package/lib/constants.ts +0 -1173
  212. package/lib/gateway/Shard.ts +0 -704
  213. package/lib/gateway/ShardsManager.ts +0 -11
  214. package/lib/gateway/index.ts +0 -2
  215. package/lib/index.ts +0 -7
  216. package/lib/rest/CDN.ts +0 -56
  217. package/lib/rest/Endpoints.ts +0 -241
  218. package/lib/rest/REST.ts +0 -45
  219. package/lib/rest/RequestsManager.ts +0 -134
  220. package/lib/rest/index.ts +0 -4
  221. package/lib/structures/Application.ts +0 -599
  222. package/lib/structures/ApplicationCommand.ts +0 -187
  223. package/lib/structures/AuditLog.ts +0 -112
  224. package/lib/structures/AutoModerationRule.ts +0 -127
  225. package/lib/structures/Base.ts +0 -39
  226. package/lib/structures/Channel.ts +0 -921
  227. package/lib/structures/ClientApplication.ts +0 -515
  228. package/lib/structures/Emoji.ts +0 -95
  229. package/lib/structures/Entitlement.ts +0 -65
  230. package/lib/structures/Guild.ts +0 -1842
  231. package/lib/structures/GuildMember.ts +0 -193
  232. package/lib/structures/GuildScheduledEvent.ts +0 -164
  233. package/lib/structures/GuildTemplate.ts +0 -103
  234. package/lib/structures/Integration.ts +0 -136
  235. package/lib/structures/Interaction.ts +0 -506
  236. package/lib/structures/Invite.ts +0 -108
  237. package/lib/structures/Message.ts +0 -421
  238. package/lib/structures/Role.ts +0 -116
  239. package/lib/structures/SKU.ts +0 -63
  240. package/lib/structures/StageInstance.ts +0 -74
  241. package/lib/structures/Sticker.ts +0 -100
  242. package/lib/structures/Team.ts +0 -41
  243. package/lib/structures/TestEntitlement.ts +0 -78
  244. package/lib/structures/UnavailableGuild.ts +0 -27
  245. package/lib/structures/User.ts +0 -233
  246. package/lib/structures/VoiceState.ts +0 -72
  247. package/lib/structures/Webhook.ts +0 -341
  248. package/lib/structures/index.ts +0 -27
  249. package/lib/types/application-command.ts +0 -118
  250. package/lib/types/application-role-connection-metadata.ts +0 -23
  251. package/lib/types/application.ts +0 -77
  252. package/lib/types/audit-log.ts +0 -105
  253. package/lib/types/auto-moderation.ts +0 -78
  254. package/lib/types/channel.ts +0 -534
  255. package/lib/types/emoji.ts +0 -24
  256. package/lib/types/entitlements.ts +0 -34
  257. package/lib/types/gateway-events.ts +0 -970
  258. package/lib/types/guild-scheduled-event.ts +0 -67
  259. package/lib/types/guild-template.ts +0 -30
  260. package/lib/types/guild.ts +0 -388
  261. package/lib/types/index.ts +0 -23
  262. package/lib/types/interaction.ts +0 -224
  263. package/lib/types/invite.ts +0 -78
  264. package/lib/types/message-components.ts +0 -127
  265. package/lib/types/role.ts +0 -51
  266. package/lib/types/sku.ts +0 -32
  267. package/lib/types/stage-instance.ts +0 -22
  268. package/lib/types/sticker.ts +0 -67
  269. package/lib/types/team.ts +0 -34
  270. package/lib/types/user.ts +0 -93
  271. package/lib/types/voice.ts +0 -51
  272. package/lib/types/webhook.ts +0 -40
  273. package/lib/utils/Util.ts +0 -600
  274. package/lib/utils/errors.ts +0 -23
  275. package/lib/utils/index.ts +0 -2
  276. package/test/basic.js +0 -8
  277. package/tsconfig.json +0 -107
@@ -1,66 +0,0 @@
1
- import type { RawUser, RawTeam, JSONTeam, JSONUser, RawGuild, JSONGuild } from ".";
2
- import type { ApplicationFlags, OAuth2Scopes } from "../constants";
3
- /** https://discord.com/developers/docs/resources/application#application-object-application-structure */
4
- export interface RawApplication {
5
- id: string;
6
- name: string;
7
- icon: string | null;
8
- description: string;
9
- rpc_origins?: Array<string>;
10
- bot_public: boolean;
11
- bot_require_code_grant: boolean;
12
- terms_of_service_url?: string;
13
- privacy_policy_url?: string;
14
- owner?: RawUser;
15
- verify_key: string;
16
- team: RawTeam | null;
17
- guild_id?: string;
18
- guild?: RawGuild;
19
- primary_sku_id?: string;
20
- slug?: string;
21
- cover_image?: string;
22
- flags?: ApplicationFlags;
23
- approximate_guild_count?: number;
24
- redirect_uris?: Array<string>;
25
- interactions_endpoint_url?: string;
26
- role_connections_verification_url?: string;
27
- tags?: Array<string>;
28
- install_params?: RawInstallParams;
29
- custom_install_url?: string;
30
- }
31
- /** https://discord.com/developers/docs/resources/application#install-params-object-install-params-structure */
32
- export interface RawInstallParams {
33
- scopes: Array<OAuth2Scopes>;
34
- permissions: string;
35
- }
36
- export interface JSONApplication {
37
- id: string;
38
- name: string;
39
- icon: string | null;
40
- description: string;
41
- rpcOrigins?: Array<string>;
42
- botPublic: boolean;
43
- botRequireCodeGrant: boolean;
44
- termsOfServiceURL?: string;
45
- privacyPolicyURL?: string;
46
- owner?: JSONUser;
47
- verifyKey: string;
48
- team: JSONTeam | null;
49
- guildId?: string;
50
- guild?: JSONGuild;
51
- primarySKUId?: string;
52
- slug?: string;
53
- coverImage?: string;
54
- flags?: ApplicationFlags;
55
- approximateGuildCount?: number;
56
- redirectURIs?: Array<string>;
57
- interactionsEndpointURL?: string;
58
- roleConnectionsVerificationURL?: string;
59
- tags?: Array<string>;
60
- installParams?: JSONInstallParams;
61
- customInstallURL?: string;
62
- }
63
- export interface JSONInstallParams {
64
- scopes: Array<OAuth2Scopes>;
65
- permissions: string;
66
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=application.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.js","sourceRoot":"","sources":["../../../lib/types/application.ts"],"names":[],"mappings":""}
@@ -1,82 +0,0 @@
1
- import type { RawApplicationCommand, RawGuildScheduledEvent, RawAutoModerationRule, RawIntegration, RawChannel, RawUser, RawWebhook, JSONUser, JSONApplicationCommand, JSONAutoModerationRule, JSONGuildScheduledEvent, JSONIntegration, JSONChannel, JSONWebhook } from ".";
2
- import type { AuditLogEvents } from "../constants";
3
- /** https://discord.com/developers/docs/resources/audit-log#audit-log-object-audit-log-structure */
4
- export interface RawAuditLog {
5
- application_commands: Array<RawApplicationCommand>;
6
- audit_log_entries: Array<RawAuditLogEntry>;
7
- auto_moderation_rules: Array<RawAutoModerationRule>;
8
- guild_scheduled_events: Array<RawGuildScheduledEvent>;
9
- integrations: Array<RawIntegration>;
10
- threads: Array<RawChannel>;
11
- users: Array<RawUser>;
12
- webhooks: Array<RawWebhook>;
13
- }
14
- /** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-entry-structure */
15
- export interface RawAuditLogEntry {
16
- target_id: string | null;
17
- changes?: Array<RawAuditLogChange>;
18
- user_id: string | null;
19
- id: string;
20
- action_type: AuditLogEvents;
21
- options?: RawOptionalAuditLogEntryInfo;
22
- reason?: string;
23
- }
24
- /** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info */
25
- export interface RawOptionalAuditLogEntryInfo {
26
- application_id: string;
27
- auto_moderation_rule_name: string;
28
- auto_moderation_rule_trigger_type: string;
29
- channel_id: string;
30
- count: string;
31
- delete_member_days: string;
32
- id: string;
33
- members_removed: string;
34
- message_id: string;
35
- role_name: string;
36
- type: string;
37
- integration_type: string;
38
- }
39
- /** https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure */
40
- export interface RawAuditLogChange {
41
- new_value?: any;
42
- old_value?: any;
43
- key: string;
44
- }
45
- export interface JSONAuditLog {
46
- applicationCommands: Array<JSONApplicationCommand>;
47
- auditLogEntries: Array<JSONAuditLogEntry>;
48
- autoModerationRules: Array<JSONAutoModerationRule>;
49
- guildScheduledEvents: Array<JSONGuildScheduledEvent>;
50
- integrations: Array<JSONIntegration>;
51
- threads: Array<JSONChannel>;
52
- users: Array<JSONUser>;
53
- webhooks: Array<JSONWebhook>;
54
- }
55
- export interface JSONAuditLogEntry {
56
- targetId: string | null;
57
- changes?: Array<JSONAuditLogChange>;
58
- userId: string | null;
59
- id: string;
60
- actionType: AuditLogEvents;
61
- options?: JSONOptionalAuditLogEntryInfo;
62
- reason?: string;
63
- }
64
- export interface JSONOptionalAuditLogEntryInfo {
65
- applicationId: string;
66
- autoModerationRuleName: string;
67
- autoModerationRuleTriggerType: string;
68
- channelId: string;
69
- count: string;
70
- deleteMemberDays: string;
71
- id: string;
72
- membersRemoved: string;
73
- messageId: string;
74
- roleName: string;
75
- type: string;
76
- integrationType: string;
77
- }
78
- export interface JSONAuditLogChange {
79
- newValue?: any;
80
- oldValue?: any;
81
- key: string;
82
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=audit-log.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"audit-log.js","sourceRoot":"","sources":["../../../lib/types/audit-log.ts"],"names":[],"mappings":""}
@@ -1,65 +0,0 @@
1
- import type { KeywordPresetTypes, ActionTypes, EventTypes, TriggerTypes } from "../constants";
2
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-auto-moderation-rule-structure */
3
- export interface RawAutoModerationRule {
4
- id: string;
5
- guild_id: string;
6
- name: string;
7
- creator_id: string;
8
- event_type: EventTypes;
9
- trigger_type: TriggerTypes;
10
- trigger_metadata: RawTriggerMetadata;
11
- actions: Array<RawAutoModerationAction>;
12
- enabled: boolean;
13
- exempt_roles: Array<string>;
14
- exempt_channels: Array<string>;
15
- }
16
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-metadata */
17
- export interface RawTriggerMetadata {
18
- keyword_filter: Array<string>;
19
- regex_patterns: Array<string>;
20
- presets: KeywordPresetTypes;
21
- allow_list: Array<string>;
22
- mention_total_limit: number;
23
- mention_raid_protection: boolean;
24
- }
25
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-auto-moderation-action-structure */
26
- export interface RawAutoModerationAction {
27
- type: ActionTypes;
28
- metadata: RawActionMetadata;
29
- }
30
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-metadata */
31
- export interface RawActionMetadata {
32
- channel_id: string;
33
- duration_seconds: number;
34
- custom_message?: string;
35
- }
36
- export interface JSONAutoModerationRule {
37
- id: string;
38
- guildId: string;
39
- name: string;
40
- creatorId: string;
41
- eventType: EventTypes;
42
- triggerType: TriggerTypes;
43
- triggerMetadata: JSONTriggerMetadata;
44
- actions: Array<JSONAutoModerationAction>;
45
- enabled: boolean;
46
- exemptRoles: Array<string>;
47
- exemptChannels: Array<string>;
48
- }
49
- export interface JSONTriggerMetadata {
50
- keywordFilter: Array<string>;
51
- regexPatterns: Array<string>;
52
- presets: KeywordPresetTypes;
53
- allowList: Array<string>;
54
- mentionTotalLimit: number;
55
- mentionRaidProtection: boolean;
56
- }
57
- export interface JSONAutoModerationAction {
58
- type: ActionTypes;
59
- metadata: JSONActionMetadata;
60
- }
61
- export interface JSONActionMetadata {
62
- channelId: string;
63
- durationSeconds: number;
64
- customMessage?: string;
65
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=auto-moderation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auto-moderation.js","sourceRoot":"","sources":["../../../lib/types/auto-moderation.ts"],"names":[],"mappings":""}
@@ -1,456 +0,0 @@
1
- import type { AllowedMentionTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
2
- import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, JSONMessageInteraction, JSONStickerItem, JSONSticker, JSONEmoji, JSONUser, JSONApplication, JSONGuildMember, RawActionRow, JSONActionRow, RawResolvedData, JSONResolvedData } from ".";
3
- /** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
4
- export interface RawChannel {
5
- id: string;
6
- type: ChannelTypes;
7
- guild_id?: string;
8
- position?: number;
9
- permission_overwrites?: Array<RawOverwrite>;
10
- name?: string | null;
11
- topic?: string | null;
12
- nsfw?: boolean;
13
- last_message_id?: string | null;
14
- bitrate?: number;
15
- user_limit?: number;
16
- rate_limit_per_user?: number;
17
- recipients?: Array<RawUser>;
18
- icon?: string | null;
19
- owner_id?: string;
20
- application_id?: string;
21
- managed?: boolean;
22
- parent_id?: string | null;
23
- last_pin_timestamp?: string | null;
24
- rtc_region?: string | null;
25
- video_quality_mode?: VideoQualityModes;
26
- message_count?: number;
27
- member_count?: number;
28
- thread_metadata?: RawThreadMetadata;
29
- member?: RawThreadMember;
30
- default_auto_archive_duration?: number;
31
- permissions?: string;
32
- flags?: ChannelFlags;
33
- total_message_sent?: number;
34
- available_tags?: Array<RawForumTag>;
35
- applied_tags?: Array<string>;
36
- default_reaction_emoji?: RawDefaultReaction | null;
37
- default_thread_rate_limit_per_user?: number;
38
- default_sort_order?: SortOrderTypes | null;
39
- default_forum_layout?: ForumLayoutTypes;
40
- }
41
- /** https://discord.com/developers/docs/resources/channel#message-object-message-structure */
42
- export interface RawMessage {
43
- id: string;
44
- channel_id: string;
45
- author: RawUser;
46
- content: string;
47
- timestamp: string;
48
- edited_timestamp: string | null;
49
- tts: boolean;
50
- mention_everyone: boolean;
51
- mentions: Array<RawUser>;
52
- mention_roles: Array<string>;
53
- mention_channels?: Array<RawChannelMention>;
54
- attachments: Array<RawAttachment>;
55
- embeds: Array<RawEmbed>;
56
- reactions?: Array<RawReaction>;
57
- nonce?: number | string;
58
- pinned: boolean;
59
- webhook_id?: string;
60
- type: MessageTypes;
61
- activity?: RawMessageActivity;
62
- application?: RawApplication;
63
- application_id?: string;
64
- message_reference?: RawMessageReference;
65
- flags?: MessageFlags;
66
- referenced_message?: RawMessage | null;
67
- interaction?: RawMessageInteraction;
68
- thread?: RawChannel;
69
- components?: Array<RawActionRow>;
70
- sticker_items?: Array<RawStickerItem>;
71
- stickers?: Array<RawSticker>;
72
- position?: number;
73
- role_subscription_data?: RawRoleSubscriptionData;
74
- resolved?: RawResolvedData;
75
- }
76
- /** https://discord.com/developers/docs/resources/channel#message-object-message-activity-structure */
77
- export interface RawMessageActivity {
78
- type: MessageActivityTypes;
79
- party_id?: string;
80
- }
81
- /** https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */
82
- export interface RawMessageReference {
83
- message_id?: string;
84
- channel_id?: string;
85
- guild_id?: string;
86
- fail_if_not_exists?: boolean;
87
- }
88
- /** https://discord.com/developers/docs/resources/channel#followed-channel-object-followed-channel-structure */
89
- export interface RawFollowedChannel {
90
- channel_id: string;
91
- webhook_id: string;
92
- }
93
- /** https://discord.com/developers/docs/resources/channel#reaction-object-reaction-structure */
94
- export interface RawReaction {
95
- count: number;
96
- count_details: RawReactionCountDetails;
97
- me: boolean;
98
- me_burst: boolean;
99
- emoji: RawEmoji;
100
- burst_colors: Array<string>;
101
- }
102
- /** https://discord.com/developers/docs/resources/channel#reaction-count-details-object-reaction-count-details-structure */
103
- export interface RawReactionCountDetails {
104
- burst: number;
105
- normal: number;
106
- }
107
- /** https://discord.com/developers/docs/resources/channel#overwrite-object-overwrite-structure */
108
- export interface RawOverwrite {
109
- id: string;
110
- type: number;
111
- allow: string;
112
- deny: string;
113
- }
114
- /** https://discord.com/developers/docs/resources/channel#thread-metadata-object-thread-metadata-structure */
115
- export interface RawThreadMetadata {
116
- archived: boolean;
117
- auto_archive_duration: number;
118
- archive_timestamp: string;
119
- locked: boolean;
120
- invitable?: boolean;
121
- create_timestamp?: string | null;
122
- }
123
- /** https://discord.com/developers/docs/resources/channel#thread-member-object-thread-member-structure */
124
- export interface RawThreadMember {
125
- id?: string;
126
- user_id?: string;
127
- join_timestamp: string;
128
- flags: number;
129
- member?: RawGuildMember;
130
- }
131
- /** https://discord.com/developers/docs/resources/channel#default-reaction-object-default-reaction-structure */
132
- export interface RawDefaultReaction {
133
- emoji_id: string | null;
134
- emoji_name: string | null;
135
- }
136
- /** https://discord.com/developers/docs/resources/channel#forum-tag-object-forum-tag-structure */
137
- export interface RawForumTag {
138
- id: string;
139
- name: string;
140
- moderated: boolean;
141
- emoji_id?: string;
142
- emoji_name?: string;
143
- }
144
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-structure */
145
- export interface RawEmbed {
146
- title?: string;
147
- type?: string;
148
- description?: string;
149
- url?: string;
150
- timestamp?: string;
151
- color?: number;
152
- footer?: RawEmbedFooter;
153
- image?: RawEmbedImage;
154
- thumbnail?: RawEmbedThumbnail;
155
- video?: RawEmbedVideo;
156
- provider?: RawEmbedProvider;
157
- author?: RawEmbedAuthor;
158
- fields?: Array<RawEmbedField>;
159
- }
160
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure */
161
- export interface RawEmbedThumbnail {
162
- url: string;
163
- proxy_url?: string;
164
- height?: number;
165
- width?: number;
166
- }
167
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-video-structure */
168
- export interface RawEmbedVideo {
169
- url?: string;
170
- proxy_url?: string;
171
- height?: number;
172
- width?: number;
173
- }
174
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure */
175
- export interface RawEmbedImage {
176
- url: string;
177
- proxy_url?: string;
178
- height?: number;
179
- width?: number;
180
- }
181
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-provider-structure */
182
- export interface RawEmbedProvider {
183
- name?: string;
184
- url?: string;
185
- }
186
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure */
187
- export interface RawEmbedAuthor {
188
- name: string;
189
- url?: string;
190
- icon_url?: string;
191
- proxy_icon_url?: string;
192
- }
193
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure */
194
- export interface RawEmbedFooter {
195
- text: string;
196
- icon_url?: string;
197
- proxy_icon_url?: string;
198
- }
199
- /** https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure */
200
- export interface RawEmbedField {
201
- name: string;
202
- value: string;
203
- inline?: boolean;
204
- }
205
- /** https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure */
206
- export interface RawAttachment {
207
- id: string;
208
- filename: string;
209
- description?: string;
210
- content_type?: string;
211
- size: number;
212
- url: string;
213
- proxy_url: string;
214
- height?: number;
215
- width?: number;
216
- ephemeral?: boolean;
217
- duration_secs?: number;
218
- waveform?: boolean;
219
- flags?: AttachmentFlags;
220
- }
221
- /** https://discord.com/developers/docs/resources/channel#channel-mention-object-channel-mention-structure */
222
- export interface RawChannelMention {
223
- id: string;
224
- guild_id: string;
225
- type: ChannelTypes;
226
- name: string;
227
- }
228
- /** https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mentions-structure */
229
- export interface RawAllowedMentions {
230
- parse: Array<AllowedMentionTypes>;
231
- roles: Array<string>;
232
- users: Array<string>;
233
- replied_user: boolean;
234
- }
235
- /** https://discord.com/developers/docs/resources/channel#role-subscription-data-object-role-subscription-data-object-structure */
236
- export interface RawRoleSubscriptionData {
237
- role_subscription_listing_id: string;
238
- tier_name: string;
239
- total_months_subscribed: number;
240
- is_renewal: boolean;
241
- }
242
- export interface JSONChannel {
243
- id: string;
244
- type: ChannelTypes;
245
- guildId?: string;
246
- position?: number;
247
- permissionOverwrites?: Array<JSONOverwrite>;
248
- name?: string | null;
249
- topic?: string | null;
250
- nsfw?: boolean;
251
- lastMessageId?: string | null;
252
- bitrate?: number;
253
- userLimit?: number;
254
- rateLimitPerUser?: number;
255
- recipients?: Array<JSONUser>;
256
- icon?: string | null;
257
- ownerId?: string;
258
- applicationId?: string;
259
- managed?: boolean;
260
- parentId?: string | null;
261
- lastPinTimestamp?: string | null;
262
- rtcRegion?: string | null;
263
- videoQualityMode?: VideoQualityModes;
264
- messageCount?: number;
265
- memberCount?: number;
266
- threadMetadata?: JSONThreadMetadata;
267
- member?: JSONThreadMember;
268
- defaultAutoArchiveDuration?: number;
269
- permissions?: string;
270
- flags?: ChannelFlags;
271
- totalMessageSent?: number;
272
- availableTags?: Array<JSONForumTag>;
273
- appliedTags?: Array<string>;
274
- defaultReactionEmoji?: JSONDefaultReaction | null;
275
- defaultThreadRateLimitPerUser?: number;
276
- defaultSortOrder?: SortOrderTypes | null;
277
- defaultForumLayout?: ForumLayoutTypes;
278
- }
279
- export interface JSONMessage {
280
- id: string;
281
- channelId: string;
282
- author: JSONUser;
283
- content: string;
284
- timestamp: string;
285
- editedTimestamp: string | null;
286
- tts: boolean;
287
- mentionEveryone: boolean;
288
- mentions: Array<JSONUser>;
289
- mentionRoles: Array<string>;
290
- mentionChannels?: Array<JSONChannelMention>;
291
- attachments: Array<JSONAttachment>;
292
- embeds: Array<JSONEmbed>;
293
- reactions?: Array<JSONReaction>;
294
- nonce?: number | string;
295
- pinned: boolean;
296
- webhookId?: string;
297
- type: MessageTypes;
298
- activity?: JSONMessageActivity;
299
- application?: JSONApplication;
300
- applicationId?: string;
301
- messageReference?: JSONMessageReference;
302
- flags?: MessageFlags;
303
- referencedMessage?: JSONMessage | null;
304
- interaction?: JSONMessageInteraction;
305
- thread?: JSONChannel;
306
- components?: Array<JSONActionRow>;
307
- stickerItems?: Array<JSONStickerItem>;
308
- stickers?: Array<JSONSticker>;
309
- position?: number;
310
- roleSubscriptionData?: JSONRoleSubscriptionData;
311
- resolved?: JSONResolvedData;
312
- }
313
- export interface JSONMessageActivity {
314
- type: MessageActivityTypes;
315
- partyId?: string;
316
- }
317
- export interface JSONMessageReference {
318
- messageId?: string;
319
- channelId?: string;
320
- guildId?: string;
321
- failIfNotExists?: boolean;
322
- }
323
- export interface JSONFollowedChannel {
324
- channelId: string;
325
- webhookId: string;
326
- }
327
- export interface JSONReaction {
328
- count: number;
329
- countDetails: JSONReactionCountDetails;
330
- me: boolean;
331
- meBurst: boolean;
332
- emoji: JSONEmoji;
333
- burstColors: Array<string>;
334
- }
335
- export interface JSONReactionCountDetails {
336
- burst: number;
337
- normal: number;
338
- }
339
- export interface JSONOverwrite {
340
- id: string;
341
- type: number;
342
- allow: string;
343
- deny: string;
344
- }
345
- export interface JSONThreadMetadata {
346
- archived: boolean;
347
- autoArchiveDuration: number;
348
- archiveTimestamp: string;
349
- locked: boolean;
350
- invitable?: boolean;
351
- createTimestamp?: string | null;
352
- }
353
- export interface JSONThreadMember {
354
- id?: string;
355
- userId?: string;
356
- joinTimestamp: string;
357
- flags: number;
358
- member?: JSONGuildMember;
359
- }
360
- export interface JSONDefaultReaction {
361
- emojiId: string | null;
362
- emojiName: string | null;
363
- }
364
- export interface JSONForumTag {
365
- id: string;
366
- name: string;
367
- moderated: boolean;
368
- emojiId?: string;
369
- emojiName?: string;
370
- }
371
- export interface JSONEmbed {
372
- title?: string;
373
- type?: string;
374
- description?: string;
375
- url?: string;
376
- timestamp?: string;
377
- color?: number;
378
- footer?: JSONEmbedFooter;
379
- image?: JSONEmbedImage;
380
- thumbnail?: JSONEmbedThumbnail;
381
- video?: JSONEmbedVideo;
382
- provider?: JSONEmbedProvider;
383
- author?: JSONEmbedAuthor;
384
- fields?: Array<JSONEmbedField>;
385
- }
386
- export interface JSONEmbedThumbnail {
387
- url: string;
388
- proxyURL?: string;
389
- height?: number;
390
- width?: number;
391
- }
392
- export interface JSONEmbedVideo {
393
- url?: string;
394
- proxyURL?: string;
395
- height?: number;
396
- width?: number;
397
- }
398
- export interface JSONEmbedImage {
399
- url: string;
400
- proxyURL?: string;
401
- height?: number;
402
- width?: number;
403
- }
404
- export interface JSONEmbedProvider {
405
- name?: string;
406
- url?: string;
407
- }
408
- export interface JSONEmbedAuthor {
409
- name: string;
410
- url?: string;
411
- iconURL?: string;
412
- proxyIconURL?: string;
413
- }
414
- export interface JSONEmbedFooter {
415
- text: string;
416
- iconURL?: string;
417
- proxyIconURL?: string;
418
- }
419
- export interface JSONEmbedField {
420
- name: string;
421
- value: string;
422
- inline?: boolean;
423
- }
424
- export interface JSONAttachment {
425
- id: string;
426
- filename: string;
427
- description?: string;
428
- contentType?: string;
429
- size: number;
430
- url: string;
431
- proxyURL: string;
432
- height?: number;
433
- width?: number;
434
- ephemeral?: boolean;
435
- durationSecs?: number;
436
- waveform?: boolean;
437
- flags?: AttachmentFlags;
438
- }
439
- export interface JSONChannelMention {
440
- id: string;
441
- guildId: string;
442
- type: ChannelTypes;
443
- name: string;
444
- }
445
- export interface JSONAllowedMentions {
446
- parse: Array<AllowedMentionTypes>;
447
- roles: Array<string>;
448
- users: Array<string>;
449
- repliedUser: boolean;
450
- }
451
- export interface JSONRoleSubscriptionData {
452
- roleSubscriptionListingId: string;
453
- tierName: string;
454
- totalMonthsSubscribed: number;
455
- isRenewal: boolean;
456
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=channel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"channel.js","sourceRoot":"","sources":["../../../lib/types/channel.ts"],"names":[],"mappings":""}