disgroove 1.3.4-test.1 → 1.3.4

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 (207) hide show
  1. package/README.md +9 -3
  2. package/dist/lib/Client.d.ts +242 -0
  3. package/dist/lib/Client.js +256 -0
  4. package/dist/lib/Client.js.map +1 -0
  5. package/dist/lib/constants.d.ts +1084 -0
  6. package/dist/lib/constants.js +1163 -0
  7. package/dist/lib/constants.js.map +1 -0
  8. package/dist/lib/gateway/Shard.d.ts +25 -0
  9. package/dist/lib/gateway/Shard.js +522 -0
  10. package/dist/lib/gateway/Shard.js.map +1 -0
  11. package/dist/lib/gateway/ShardsManager.d.ts +6 -0
  12. package/dist/lib/gateway/ShardsManager.js +14 -0
  13. package/dist/lib/gateway/ShardsManager.js.map +1 -0
  14. package/dist/lib/gateway/index.d.ts +2 -0
  15. package/dist/lib/gateway/index.js +19 -0
  16. package/dist/lib/gateway/index.js.map +1 -0
  17. package/dist/lib/index.d.ts +7 -0
  18. package/dist/lib/index.js +24 -0
  19. package/dist/lib/index.js.map +1 -0
  20. package/dist/lib/rest/CDN.d.ts +21 -0
  21. package/dist/lib/rest/CDN.js +46 -0
  22. package/dist/lib/rest/CDN.js.map +1 -0
  23. package/dist/lib/rest/Endpoints.d.ts +94 -0
  24. package/dist/lib/rest/Endpoints.js +211 -0
  25. package/dist/lib/rest/Endpoints.js.map +1 -0
  26. package/dist/lib/rest/REST.d.ts +17 -0
  27. package/dist/lib/rest/REST.js +35 -0
  28. package/dist/lib/rest/REST.js.map +1 -0
  29. package/dist/lib/rest/RequestsManager.d.ts +22 -0
  30. package/dist/lib/rest/RequestsManager.js +123 -0
  31. package/dist/lib/rest/RequestsManager.js.map +1 -0
  32. package/dist/lib/rest/index.d.ts +4 -0
  33. package/dist/lib/rest/index.js +34 -0
  34. package/dist/lib/rest/index.js.map +1 -0
  35. package/dist/lib/structures/Application.d.ts +174 -0
  36. package/dist/lib/structures/Application.js +328 -0
  37. package/dist/lib/structures/Application.js.map +1 -0
  38. package/dist/lib/structures/ApplicationCommand.d.ts +45 -0
  39. package/dist/lib/structures/ApplicationCommand.js +127 -0
  40. package/dist/lib/structures/ApplicationCommand.js.map +1 -0
  41. package/dist/lib/structures/AuditLog.d.ts +19 -0
  42. package/dist/lib/structures/AuditLog.js +101 -0
  43. package/dist/lib/structures/AuditLog.js.map +1 -0
  44. package/dist/lib/structures/AutoModerationRule.d.ts +34 -0
  45. package/dist/lib/structures/AutoModerationRule.js +96 -0
  46. package/dist/lib/structures/AutoModerationRule.js.map +1 -0
  47. package/dist/lib/structures/Base.d.ts +10 -0
  48. package/dist/lib/structures/Base.js +23 -0
  49. package/dist/lib/structures/Base.js.map +1 -0
  50. package/dist/lib/structures/Channel.d.ts +254 -0
  51. package/dist/lib/structures/Channel.js +592 -0
  52. package/dist/lib/structures/Channel.js.map +1 -0
  53. package/dist/lib/structures/ClientApplication.d.ts +150 -0
  54. package/dist/lib/structures/ClientApplication.js +241 -0
  55. package/dist/lib/structures/ClientApplication.js.map +1 -0
  56. package/dist/lib/structures/Emoji.d.ts +26 -0
  57. package/dist/lib/structures/Emoji.js +75 -0
  58. package/dist/lib/structures/Emoji.js.map +1 -0
  59. package/dist/lib/structures/Entitlement.d.ts +24 -0
  60. package/dist/lib/structures/Entitlement.js +68 -0
  61. package/dist/lib/structures/Entitlement.js.map +1 -0
  62. package/dist/lib/structures/Guild.d.ts +474 -0
  63. package/dist/lib/structures/Guild.js +1141 -0
  64. package/dist/lib/structures/Guild.js.map +1 -0
  65. package/dist/lib/structures/GuildMember.d.ts +49 -0
  66. package/dist/lib/structures/GuildMember.js +146 -0
  67. package/dist/lib/structures/GuildMember.js.map +1 -0
  68. package/dist/lib/structures/GuildScheduledEvent.d.ts +49 -0
  69. package/dist/lib/structures/GuildScheduledEvent.js +118 -0
  70. package/dist/lib/structures/GuildScheduledEvent.js.map +1 -0
  71. package/dist/lib/structures/GuildTemplate.d.ts +30 -0
  72. package/dist/lib/structures/GuildTemplate.js +72 -0
  73. package/dist/lib/structures/GuildTemplate.js.map +1 -0
  74. package/dist/lib/structures/IdentifiableBase.d.ts +15 -0
  75. package/dist/lib/structures/IdentifiableBase.js +25 -0
  76. package/dist/lib/structures/IdentifiableBase.js.map +1 -0
  77. package/dist/lib/structures/Integration.d.ts +31 -0
  78. package/dist/lib/structures/Integration.js +103 -0
  79. package/dist/lib/structures/Integration.js.map +1 -0
  80. package/dist/lib/structures/Interaction.d.ts +76 -0
  81. package/dist/lib/structures/Interaction.js +346 -0
  82. package/dist/lib/structures/Interaction.js.map +1 -0
  83. package/dist/lib/structures/Invite.d.ts +26 -0
  84. package/dist/lib/structures/Invite.js +82 -0
  85. package/dist/lib/structures/Invite.js.map +1 -0
  86. package/dist/lib/structures/Message.d.ts +86 -0
  87. package/dist/lib/structures/Message.js +303 -0
  88. package/dist/lib/structures/Message.js.map +1 -0
  89. package/dist/lib/structures/Role.d.ts +37 -0
  90. package/dist/lib/structures/Role.js +90 -0
  91. package/dist/lib/structures/Role.js.map +1 -0
  92. package/dist/lib/structures/SKU.d.ts +23 -0
  93. package/dist/lib/structures/SKU.js +63 -0
  94. package/dist/lib/structures/SKU.js.map +1 -0
  95. package/dist/lib/structures/StageInstance.d.ts +24 -0
  96. package/dist/lib/structures/StageInstance.js +57 -0
  97. package/dist/lib/structures/StageInstance.js.map +1 -0
  98. package/dist/lib/structures/Sticker.d.ts +31 -0
  99. package/dist/lib/structures/Sticker.js +86 -0
  100. package/dist/lib/structures/Sticker.js.map +1 -0
  101. package/dist/lib/structures/Team.d.ts +14 -0
  102. package/dist/lib/structures/Team.js +39 -0
  103. package/dist/lib/structures/Team.js.map +1 -0
  104. package/dist/lib/structures/TestEntitlement.d.ts +23 -0
  105. package/dist/lib/structures/TestEntitlement.js +61 -0
  106. package/dist/lib/structures/TestEntitlement.js.map +1 -0
  107. package/dist/lib/structures/UnavailableGuild.d.ts +11 -0
  108. package/dist/lib/structures/UnavailableGuild.js +25 -0
  109. package/dist/lib/structures/UnavailableGuild.js.map +1 -0
  110. package/dist/lib/structures/User.d.ts +63 -0
  111. package/dist/lib/structures/User.js +177 -0
  112. package/dist/lib/structures/User.js.map +1 -0
  113. package/dist/lib/structures/VoiceState.d.ts +24 -0
  114. package/dist/lib/structures/VoiceState.js +66 -0
  115. package/dist/lib/structures/VoiceState.js.map +1 -0
  116. package/dist/lib/structures/Webhook.d.ts +82 -0
  117. package/dist/lib/structures/Webhook.js +223 -0
  118. package/dist/lib/structures/Webhook.js.map +1 -0
  119. package/dist/lib/structures/index.d.ts +28 -0
  120. package/dist/lib/structures/index.js +45 -0
  121. package/dist/lib/structures/index.js.map +1 -0
  122. package/dist/lib/types/application-command.d.ts +102 -0
  123. package/dist/lib/types/application-command.js +3 -0
  124. package/dist/lib/types/application-command.js.map +1 -0
  125. package/dist/lib/types/application-role-connection-metadata.d.ts +18 -0
  126. package/dist/lib/types/application-role-connection-metadata.js +3 -0
  127. package/dist/lib/types/application-role-connection-metadata.js.map +1 -0
  128. package/dist/lib/types/application.d.ts +66 -0
  129. package/dist/lib/types/application.js +3 -0
  130. package/dist/lib/types/application.js.map +1 -0
  131. package/dist/lib/types/audit-log.d.ts +83 -0
  132. package/dist/lib/types/audit-log.js +3 -0
  133. package/dist/lib/types/audit-log.js.map +1 -0
  134. package/dist/lib/types/auto-moderation.d.ts +65 -0
  135. package/dist/lib/types/auto-moderation.js +3 -0
  136. package/dist/lib/types/auto-moderation.js.map +1 -0
  137. package/dist/lib/types/channel.d.ts +456 -0
  138. package/dist/lib/types/channel.js +3 -0
  139. package/dist/lib/types/channel.js.map +1 -0
  140. package/dist/lib/types/emoji.d.ts +22 -0
  141. package/dist/lib/types/emoji.js +3 -0
  142. package/dist/lib/types/emoji.js.map +1 -0
  143. package/dist/lib/types/entitlements.d.ts +32 -0
  144. package/dist/lib/types/entitlements.js +3 -0
  145. package/dist/lib/types/entitlements.js.map +1 -0
  146. package/dist/lib/types/gateway-events.d.ts +806 -0
  147. package/dist/lib/types/gateway-events.js +3 -0
  148. package/dist/lib/types/gateway-events.js.map +1 -0
  149. package/dist/lib/types/guild-scheduled-event.d.ts +57 -0
  150. package/dist/lib/types/guild-scheduled-event.js +3 -0
  151. package/dist/lib/types/guild-scheduled-event.js.map +1 -0
  152. package/dist/lib/types/guild-template.d.ts +28 -0
  153. package/dist/lib/types/guild-template.js +3 -0
  154. package/dist/lib/types/guild-template.js.map +1 -0
  155. package/dist/lib/types/guild.d.ts +334 -0
  156. package/dist/lib/types/guild.js +3 -0
  157. package/dist/lib/types/guild.js.map +1 -0
  158. package/dist/lib/types/index.d.ts +23 -0
  159. package/dist/lib/types/index.js +40 -0
  160. package/dist/lib/types/index.js.map +1 -0
  161. package/dist/lib/types/interaction.d.ts +171 -0
  162. package/dist/lib/types/interaction.js +3 -0
  163. package/dist/lib/types/interaction.js.map +1 -0
  164. package/dist/lib/types/invite.d.ts +59 -0
  165. package/dist/lib/types/invite.js +3 -0
  166. package/dist/lib/types/invite.js.map +1 -0
  167. package/dist/lib/types/message-components.d.ts +100 -0
  168. package/dist/lib/types/message-components.js +3 -0
  169. package/dist/lib/types/message-components.js.map +1 -0
  170. package/dist/lib/types/role.d.ts +47 -0
  171. package/dist/lib/types/role.js +3 -0
  172. package/dist/lib/types/role.js.map +1 -0
  173. package/dist/lib/types/sku.d.ts +30 -0
  174. package/dist/lib/types/sku.js +3 -0
  175. package/dist/lib/types/sku.js.map +1 -0
  176. package/dist/lib/types/stage-instance.d.ts +20 -0
  177. package/dist/lib/types/stage-instance.js +3 -0
  178. package/dist/lib/types/stage-instance.js.map +1 -0
  179. package/dist/lib/types/sticker.d.ts +61 -0
  180. package/dist/lib/types/sticker.js +3 -0
  181. package/dist/lib/types/sticker.js.map +1 -0
  182. package/dist/lib/types/team.d.ts +30 -0
  183. package/dist/lib/types/team.js +3 -0
  184. package/dist/lib/types/team.js.map +1 -0
  185. package/dist/lib/types/user.d.ts +77 -0
  186. package/dist/lib/types/user.js +3 -0
  187. package/dist/lib/types/user.js.map +1 -0
  188. package/dist/lib/types/voice.d.ts +47 -0
  189. package/dist/lib/types/voice.js +3 -0
  190. package/dist/lib/types/voice.js.map +1 -0
  191. package/dist/lib/types/webhook.d.ts +31 -0
  192. package/dist/lib/types/webhook.js +3 -0
  193. package/dist/lib/types/webhook.js.map +1 -0
  194. package/dist/lib/utils/Collection.d.ts +24 -0
  195. package/dist/lib/utils/Collection.js +65 -0
  196. package/dist/lib/utils/Collection.js.map +1 -0
  197. package/dist/lib/utils/Util.d.ts +15 -0
  198. package/dist/lib/utils/Util.js +543 -0
  199. package/dist/lib/utils/Util.js.map +1 -0
  200. package/dist/lib/utils/errors.d.ts +12 -0
  201. package/dist/lib/utils/errors.js +25 -0
  202. package/dist/lib/utils/errors.js.map +1 -0
  203. package/dist/lib/utils/index.d.ts +3 -0
  204. package/dist/lib/utils/index.js +20 -0
  205. package/dist/lib/utils/index.js.map +1 -0
  206. package/dist/package.json +8 -14
  207. package/package.json +8 -14
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Base"), exports);
18
+ __exportStar(require("./IdentifiableBase"), exports);
19
+ __exportStar(require("./Application"), exports);
20
+ __exportStar(require("./ApplicationCommand"), exports);
21
+ __exportStar(require("./AuditLog"), exports);
22
+ __exportStar(require("./AutoModerationRule"), exports);
23
+ __exportStar(require("./Channel"), exports);
24
+ __exportStar(require("./ClientApplication"), exports);
25
+ __exportStar(require("./Emoji"), exports);
26
+ __exportStar(require("./Entitlement"), exports);
27
+ __exportStar(require("./Guild"), exports);
28
+ __exportStar(require("./GuildMember"), exports);
29
+ __exportStar(require("./GuildScheduledEvent"), exports);
30
+ __exportStar(require("./GuildTemplate"), exports);
31
+ __exportStar(require("./Integration"), exports);
32
+ __exportStar(require("./Interaction"), exports);
33
+ __exportStar(require("./Invite"), exports);
34
+ __exportStar(require("./Message"), exports);
35
+ __exportStar(require("./Role"), exports);
36
+ __exportStar(require("./SKU"), exports);
37
+ __exportStar(require("./StageInstance"), exports);
38
+ __exportStar(require("./Sticker"), exports);
39
+ __exportStar(require("./Team"), exports);
40
+ __exportStar(require("./TestEntitlement"), exports);
41
+ __exportStar(require("./UnavailableGuild"), exports);
42
+ __exportStar(require("./User"), exports);
43
+ __exportStar(require("./VoiceState"), exports);
44
+ __exportStar(require("./Webhook"), exports);
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/structures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,qDAAmC;AACnC,gDAA8B;AAC9B,uDAAqC;AACrC,6CAA2B;AAC3B,uDAAqC;AACrC,4CAA0B;AAC1B,sDAAoC;AACpC,0CAAwB;AACxB,gDAA8B;AAC9B,0CAAwB;AACxB,gDAA8B;AAC9B,wDAAsC;AACtC,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,yCAAuB;AACvB,wCAAsB;AACtB,kDAAgC;AAChC,4CAA0B;AAC1B,yCAAuB;AACvB,oDAAkC;AAClC,qDAAmC;AACnC,yCAAuB;AACvB,+CAA6B;AAC7B,4CAA0B"}
@@ -0,0 +1,102 @@
1
+ import type { ApplicationCommandTypes, ApplicationCommandOptionType, ChannelTypes, Locales, ApplicationCommandPermissionType } from "../constants";
2
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure */
3
+ export interface RawApplicationCommand {
4
+ id: string;
5
+ type?: ApplicationCommandTypes;
6
+ application_id: string;
7
+ guild_id?: string;
8
+ name: string;
9
+ name_localizations?: Partial<Record<Locales, string>> | null;
10
+ description: string;
11
+ description_localizations?: Partial<Record<Locales, string>> | null;
12
+ options?: Array<RawApplicationCommandOption>;
13
+ default_member_permissions: string | null;
14
+ dm_permission?: boolean;
15
+ default_permission?: boolean | null;
16
+ nsfw?: boolean;
17
+ version: string;
18
+ }
19
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure */
20
+ export interface RawApplicationCommandOption {
21
+ type: ApplicationCommandOptionType;
22
+ name: string;
23
+ name_localizations?: Partial<Record<Locales, string>> | null;
24
+ description: string;
25
+ description_localizations?: Partial<Record<Locales, string>> | null;
26
+ required?: boolean;
27
+ choices?: Array<RawApplicationCommandOptionChoice>;
28
+ options?: Array<RawApplicationCommandOption>;
29
+ channel_types?: Array<ChannelTypes>;
30
+ min_value?: number;
31
+ max_value?: number;
32
+ min_length?: number;
33
+ max_length?: number;
34
+ autocomplete?: boolean;
35
+ }
36
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure */
37
+ export interface RawApplicationCommandOptionChoice {
38
+ name: string;
39
+ name_localizations?: Partial<Record<Locales, string>> | null;
40
+ value: string;
41
+ }
42
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-guild-application-command-permissions-structure */
43
+ export interface RawGuildApplicationCommandPermissions {
44
+ id: string;
45
+ application_id: string;
46
+ guild_id: string;
47
+ permissions: Array<RawApplicationCommandPermission>;
48
+ }
49
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permissions-structure */
50
+ export interface RawApplicationCommandPermission {
51
+ id: string;
52
+ type: ApplicationCommandPermissionType;
53
+ permission: boolean;
54
+ }
55
+ export interface JSONApplicationCommand {
56
+ id: string;
57
+ type?: ApplicationCommandTypes;
58
+ applicationId: string;
59
+ guildId?: string;
60
+ name: string;
61
+ nameLocalizations?: Partial<Record<Locales, string>> | null;
62
+ description: string;
63
+ descriptionLocalizations?: Partial<Record<Locales, string>> | null;
64
+ options?: Array<JSONApplicationCommandOption>;
65
+ defaultMemberPermissions: string | null;
66
+ dmPermission?: boolean;
67
+ defaultPermission?: boolean | null;
68
+ nsfw?: boolean;
69
+ version: string;
70
+ }
71
+ export interface JSONApplicationCommandOption {
72
+ type: ApplicationCommandOptionType;
73
+ name: string;
74
+ nameLocalizations?: Partial<Record<Locales, string>> | null;
75
+ description: string;
76
+ descriptionLocalizations?: Partial<Record<Locales, string>> | null;
77
+ required?: boolean;
78
+ choices?: Array<JSONApplicationCommandOptionChoice>;
79
+ options?: Array<JSONApplicationCommandOption>;
80
+ channelTypes?: Array<ChannelTypes>;
81
+ minValue?: number;
82
+ maxValue?: number;
83
+ minLength?: number;
84
+ maxLength?: number;
85
+ autocomplete?: boolean;
86
+ }
87
+ export interface JSONApplicationCommandOptionChoice {
88
+ name: string;
89
+ nameLocalizations?: Partial<Record<Locales, string>> | null;
90
+ value: string;
91
+ }
92
+ export interface JSONGuildApplicationCommandPermissions {
93
+ id: string;
94
+ applicationId: string;
95
+ guildId: string;
96
+ permissions: Array<JSONApplicationCommandPermission>;
97
+ }
98
+ export interface JSONApplicationCommandPermission {
99
+ id: string;
100
+ type: ApplicationCommandPermissionType;
101
+ permission: boolean;
102
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=application-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-command.js","sourceRoot":"","sources":["../../../lib/types/application-command.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import type { ApplicationRoleConnectionMetadataType, Locales } from "../constants";
2
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-structure */
3
+ export interface RawApplicationRoleConnectionMetadata {
4
+ type: ApplicationRoleConnectionMetadataType;
5
+ key: string;
6
+ name: string;
7
+ name_localizations?: Partial<Record<Locales, string>> | null;
8
+ description: string;
9
+ description_localizations?: Partial<Record<Locales, string>> | null;
10
+ }
11
+ export interface JSONApplicationRoleConnectionMetadata {
12
+ type: ApplicationRoleConnectionMetadataType;
13
+ key: string;
14
+ name: string;
15
+ nameLocalizations?: Partial<Record<Locales, string>> | null;
16
+ description: string;
17
+ descriptionLocalizations?: Partial<Record<Locales, string>> | null;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=application-role-connection-metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-role-connection-metadata.js","sourceRoot":"","sources":["../../../lib/types/application-role-connection-metadata.ts"],"names":[],"mappings":""}
@@ -0,0 +1,66 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../../../lib/types/application.ts"],"names":[],"mappings":""}
@@ -0,0 +1,83 @@
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
+ import { Collection } from "../utils";
4
+ /** https://discord.com/developers/docs/resources/audit-log#audit-log-object-audit-log-structure */
5
+ export interface RawAuditLog {
6
+ application_commands: Array<RawApplicationCommand>;
7
+ audit_log_entries: Array<RawAuditLogEntry>;
8
+ auto_moderation_rules: Array<RawAutoModerationRule>;
9
+ guild_scheduled_events: Array<RawGuildScheduledEvent>;
10
+ integrations: Array<RawIntegration>;
11
+ threads: Array<RawChannel>;
12
+ users: Array<RawUser>;
13
+ webhooks: Array<RawWebhook>;
14
+ }
15
+ /** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-entry-structure */
16
+ export interface RawAuditLogEntry {
17
+ target_id: string | null;
18
+ changes?: Array<RawAuditLogChange>;
19
+ user_id: string | null;
20
+ id: string;
21
+ action_type: AuditLogEvents;
22
+ options?: RawOptionalAuditLogEntryInfo;
23
+ reason?: string;
24
+ }
25
+ /** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info */
26
+ export interface RawOptionalAuditLogEntryInfo {
27
+ application_id: string;
28
+ auto_moderation_rule_name: string;
29
+ auto_moderation_rule_trigger_type: string;
30
+ channel_id: string;
31
+ count: string;
32
+ delete_member_days: string;
33
+ id: string;
34
+ members_removed: string;
35
+ message_id: string;
36
+ role_name: string;
37
+ type: string;
38
+ integration_type: string;
39
+ }
40
+ /** https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure */
41
+ export interface RawAuditLogChange {
42
+ new_value?: any;
43
+ old_value?: any;
44
+ key: string;
45
+ }
46
+ export interface JSONAuditLog {
47
+ applicationCommands: Collection<string, JSONApplicationCommand>;
48
+ auditLogEntries: Collection<string, JSONAuditLogEntry>;
49
+ autoModerationRules: Collection<string, JSONAutoModerationRule>;
50
+ guildScheduledEvents: Collection<string, JSONGuildScheduledEvent>;
51
+ integrations: Collection<string, JSONIntegration>;
52
+ threads: Collection<string, JSONChannel>;
53
+ users: Collection<string, JSONUser>;
54
+ webhooks: Collection<string, JSONWebhook>;
55
+ }
56
+ export interface JSONAuditLogEntry {
57
+ targetId: string | null;
58
+ changes?: Array<JSONAuditLogChange>;
59
+ userId: string | null;
60
+ id: string;
61
+ actionType: AuditLogEvents;
62
+ options?: JSONOptionalAuditLogEntryInfo;
63
+ reason?: string;
64
+ }
65
+ export interface JSONOptionalAuditLogEntryInfo {
66
+ applicationId: string;
67
+ autoModerationRuleName: string;
68
+ autoModerationRuleTriggerType: string;
69
+ channelId: string;
70
+ count: string;
71
+ deleteMemberDays: string;
72
+ id: string;
73
+ membersRemoved: string;
74
+ messageId: string;
75
+ roleName: string;
76
+ type: string;
77
+ integrationType: string;
78
+ }
79
+ export interface JSONAuditLogChange {
80
+ newValue?: any;
81
+ oldValue?: any;
82
+ key: string;
83
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=audit-log.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-log.js","sourceRoot":"","sources":["../../../lib/types/audit-log.ts"],"names":[],"mappings":""}
@@ -0,0 +1,65 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=auto-moderation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-moderation.js","sourceRoot":"","sources":["../../../lib/types/auto-moderation.ts"],"names":[],"mappings":""}