disgroove 1.3.1-dev.6068992 → 1.3.1-dev.84d0e5a

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 (206) hide show
  1. package/dist/package.json +30 -0
  2. package/package.json +30 -30
  3. package/dist/Client.d.ts +0 -230
  4. package/dist/Client.js +0 -258
  5. package/dist/Client.js.map +0 -1
  6. package/dist/constants.d.ts +0 -1083
  7. package/dist/constants.js +0 -1162
  8. package/dist/constants.js.map +0 -1
  9. package/dist/gateway/Shard.d.ts +0 -25
  10. package/dist/gateway/Shard.js +0 -563
  11. package/dist/gateway/Shard.js.map +0 -1
  12. package/dist/gateway/ShardsManager.d.ts +0 -6
  13. package/dist/gateway/ShardsManager.js +0 -14
  14. package/dist/gateway/ShardsManager.js.map +0 -1
  15. package/dist/gateway/index.d.ts +0 -2
  16. package/dist/gateway/index.js +0 -19
  17. package/dist/gateway/index.js.map +0 -1
  18. package/dist/index.d.ts +0 -7
  19. package/dist/index.js +0 -24
  20. package/dist/index.js.map +0 -1
  21. package/dist/rest/CDN.d.ts +0 -21
  22. package/dist/rest/CDN.js +0 -46
  23. package/dist/rest/CDN.js.map +0 -1
  24. package/dist/rest/Endpoints.d.ts +0 -94
  25. package/dist/rest/Endpoints.js +0 -211
  26. package/dist/rest/Endpoints.js.map +0 -1
  27. package/dist/rest/REST.d.ts +0 -22
  28. package/dist/rest/REST.js +0 -35
  29. package/dist/rest/REST.js.map +0 -1
  30. package/dist/rest/RequestsManager.d.ts +0 -17
  31. package/dist/rest/RequestsManager.js +0 -100
  32. package/dist/rest/RequestsManager.js.map +0 -1
  33. package/dist/rest/index.d.ts +0 -4
  34. package/dist/rest/index.js +0 -34
  35. package/dist/rest/index.js.map +0 -1
  36. package/dist/structures/Application.d.ts +0 -348
  37. package/dist/structures/Application.js +0 -328
  38. package/dist/structures/Application.js.map +0 -1
  39. package/dist/structures/ApplicationCommand.d.ts +0 -74
  40. package/dist/structures/ApplicationCommand.js +0 -127
  41. package/dist/structures/ApplicationCommand.js.map +0 -1
  42. package/dist/structures/AuditLog.d.ts +0 -21
  43. package/dist/structures/AuditLog.js +0 -105
  44. package/dist/structures/AuditLog.js.map +0 -1
  45. package/dist/structures/AutoModerationRule.d.ts +0 -34
  46. package/dist/structures/AutoModerationRule.js +0 -96
  47. package/dist/structures/AutoModerationRule.js.map +0 -1
  48. package/dist/structures/Base.d.ts +0 -17
  49. package/dist/structures/Base.js +0 -31
  50. package/dist/structures/Base.js.map +0 -1
  51. package/dist/structures/Channel.d.ts +0 -252
  52. package/dist/structures/Channel.js +0 -590
  53. package/dist/structures/Channel.js.map +0 -1
  54. package/dist/structures/ClientApplication.d.ts +0 -324
  55. package/dist/structures/ClientApplication.js +0 -241
  56. package/dist/structures/ClientApplication.js.map +0 -1
  57. package/dist/structures/Emoji.d.ts +0 -28
  58. package/dist/structures/Emoji.js +0 -79
  59. package/dist/structures/Emoji.js.map +0 -1
  60. package/dist/structures/Entitlement.d.ts +0 -24
  61. package/dist/structures/Entitlement.js +0 -68
  62. package/dist/structures/Entitlement.js.map +0 -1
  63. package/dist/structures/Guild.d.ts +0 -550
  64. package/dist/structures/Guild.js +0 -1156
  65. package/dist/structures/Guild.js.map +0 -1
  66. package/dist/structures/GuildMember.d.ts +0 -50
  67. package/dist/structures/GuildMember.js +0 -149
  68. package/dist/structures/GuildMember.js.map +0 -1
  69. package/dist/structures/GuildScheduledEvent.d.ts +0 -49
  70. package/dist/structures/GuildScheduledEvent.js +0 -118
  71. package/dist/structures/GuildScheduledEvent.js.map +0 -1
  72. package/dist/structures/GuildTemplate.d.ts +0 -32
  73. package/dist/structures/GuildTemplate.js +0 -76
  74. package/dist/structures/GuildTemplate.js.map +0 -1
  75. package/dist/structures/Integration.d.ts +0 -30
  76. package/dist/structures/Integration.js +0 -102
  77. package/dist/structures/Integration.js.map +0 -1
  78. package/dist/structures/Interaction.d.ts +0 -76
  79. package/dist/structures/Interaction.js +0 -346
  80. package/dist/structures/Interaction.js.map +0 -1
  81. package/dist/structures/Invite.d.ts +0 -28
  82. package/dist/structures/Invite.js +0 -86
  83. package/dist/structures/Invite.js.map +0 -1
  84. package/dist/structures/Message.d.ts +0 -84
  85. package/dist/structures/Message.js +0 -301
  86. package/dist/structures/Message.js.map +0 -1
  87. package/dist/structures/PartialApplication.d.ts +0 -324
  88. package/dist/structures/PartialApplication.js +0 -241
  89. package/dist/structures/PartialApplication.js.map +0 -1
  90. package/dist/structures/Role.d.ts +0 -37
  91. package/dist/structures/Role.js +0 -90
  92. package/dist/structures/Role.js.map +0 -1
  93. package/dist/structures/SKU.d.ts +0 -23
  94. package/dist/structures/SKU.js +0 -63
  95. package/dist/structures/SKU.js.map +0 -1
  96. package/dist/structures/StageInstance.d.ts +0 -24
  97. package/dist/structures/StageInstance.js +0 -57
  98. package/dist/structures/StageInstance.js.map +0 -1
  99. package/dist/structures/Sticker.d.ts +0 -31
  100. package/dist/structures/Sticker.js +0 -86
  101. package/dist/structures/Sticker.js.map +0 -1
  102. package/dist/structures/Team.d.ts +0 -14
  103. package/dist/structures/Team.js +0 -39
  104. package/dist/structures/Team.js.map +0 -1
  105. package/dist/structures/TestEntitlement.d.ts +0 -23
  106. package/dist/structures/TestEntitlement.js +0 -61
  107. package/dist/structures/TestEntitlement.js.map +0 -1
  108. package/dist/structures/UnavailableGuild.d.ts +0 -11
  109. package/dist/structures/UnavailableGuild.js +0 -25
  110. package/dist/structures/UnavailableGuild.js.map +0 -1
  111. package/dist/structures/User.d.ts +0 -63
  112. package/dist/structures/User.js +0 -177
  113. package/dist/structures/User.js.map +0 -1
  114. package/dist/structures/VoiceState.d.ts +0 -26
  115. package/dist/structures/VoiceState.js +0 -70
  116. package/dist/structures/VoiceState.js.map +0 -1
  117. package/dist/structures/Webhook.d.ts +0 -84
  118. package/dist/structures/Webhook.js +0 -239
  119. package/dist/structures/Webhook.js.map +0 -1
  120. package/dist/structures/index.d.ts +0 -27
  121. package/dist/structures/index.js +0 -44
  122. package/dist/structures/index.js.map +0 -1
  123. package/dist/types/application-command.d.ts +0 -102
  124. package/dist/types/application-command.js +0 -3
  125. package/dist/types/application-command.js.map +0 -1
  126. package/dist/types/application-role-connection-metadata.d.ts +0 -18
  127. package/dist/types/application-role-connection-metadata.js +0 -3
  128. package/dist/types/application-role-connection-metadata.js.map +0 -1
  129. package/dist/types/application.d.ts +0 -66
  130. package/dist/types/application.js +0 -3
  131. package/dist/types/application.js.map +0 -1
  132. package/dist/types/audit-log.d.ts +0 -83
  133. package/dist/types/audit-log.js +0 -3
  134. package/dist/types/audit-log.js.map +0 -1
  135. package/dist/types/auto-moderation.d.ts +0 -65
  136. package/dist/types/auto-moderation.js +0 -3
  137. package/dist/types/auto-moderation.js.map +0 -1
  138. package/dist/types/channel.d.ts +0 -456
  139. package/dist/types/channel.js +0 -3
  140. package/dist/types/channel.js.map +0 -1
  141. package/dist/types/emoji.d.ts +0 -22
  142. package/dist/types/emoji.js +0 -3
  143. package/dist/types/emoji.js.map +0 -1
  144. package/dist/types/entitlements.d.ts +0 -32
  145. package/dist/types/entitlements.js +0 -3
  146. package/dist/types/entitlements.js.map +0 -1
  147. package/dist/types/gateway-events.d.ts +0 -806
  148. package/dist/types/gateway-events.js +0 -3
  149. package/dist/types/gateway-events.js.map +0 -1
  150. package/dist/types/guild-scheduled-event.d.ts +0 -57
  151. package/dist/types/guild-scheduled-event.js +0 -3
  152. package/dist/types/guild-scheduled-event.js.map +0 -1
  153. package/dist/types/guild-template.d.ts +0 -28
  154. package/dist/types/guild-template.js +0 -3
  155. package/dist/types/guild-template.js.map +0 -1
  156. package/dist/types/guild.d.ts +0 -334
  157. package/dist/types/guild.js +0 -3
  158. package/dist/types/guild.js.map +0 -1
  159. package/dist/types/index.d.ts +0 -23
  160. package/dist/types/index.js +0 -40
  161. package/dist/types/index.js.map +0 -1
  162. package/dist/types/interaction.d.ts +0 -171
  163. package/dist/types/interaction.js +0 -3
  164. package/dist/types/interaction.js.map +0 -1
  165. package/dist/types/invite.d.ts +0 -59
  166. package/dist/types/invite.js +0 -3
  167. package/dist/types/invite.js.map +0 -1
  168. package/dist/types/message-components.d.ts +0 -100
  169. package/dist/types/message-components.js +0 -3
  170. package/dist/types/message-components.js.map +0 -1
  171. package/dist/types/role.d.ts +0 -47
  172. package/dist/types/role.js +0 -3
  173. package/dist/types/role.js.map +0 -1
  174. package/dist/types/sku.d.ts +0 -30
  175. package/dist/types/sku.js +0 -3
  176. package/dist/types/sku.js.map +0 -1
  177. package/dist/types/stage-instance.d.ts +0 -20
  178. package/dist/types/stage-instance.js +0 -3
  179. package/dist/types/stage-instance.js.map +0 -1
  180. package/dist/types/sticker.d.ts +0 -61
  181. package/dist/types/sticker.js +0 -3
  182. package/dist/types/sticker.js.map +0 -1
  183. package/dist/types/team.d.ts +0 -30
  184. package/dist/types/team.js +0 -3
  185. package/dist/types/team.js.map +0 -1
  186. package/dist/types/user.d.ts +0 -77
  187. package/dist/types/user.js +0 -3
  188. package/dist/types/user.js.map +0 -1
  189. package/dist/types/voice.d.ts +0 -47
  190. package/dist/types/voice.js +0 -3
  191. package/dist/types/voice.js.map +0 -1
  192. package/dist/types/webhook.d.ts +0 -31
  193. package/dist/types/webhook.js +0 -3
  194. package/dist/types/webhook.js.map +0 -1
  195. package/dist/utils/Collection.d.ts +0 -24
  196. package/dist/utils/Collection.js +0 -64
  197. package/dist/utils/Collection.js.map +0 -1
  198. package/dist/utils/Util.d.ts +0 -13
  199. package/dist/utils/Util.js +0 -513
  200. package/dist/utils/Util.js.map +0 -1
  201. package/dist/utils/errors.d.ts +0 -12
  202. package/dist/utils/errors.js +0 -25
  203. package/dist/utils/errors.js.map +0 -1
  204. package/dist/utils/index.d.ts +0 -3
  205. package/dist/utils/index.js +0 -20
  206. package/dist/utils/index.js.map +0 -1
@@ -1,328 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Application = void 0;
4
- const _1 = require(".");
5
- const rest_1 = require("../rest");
6
- /** https://discord.com/developers/docs/resources/application */
7
- class Application extends _1.Base {
8
- raw;
9
- name;
10
- icon;
11
- description;
12
- rpcOrigins;
13
- botPublic;
14
- botRequireCodeGrant;
15
- termsOfServiceURL;
16
- privacyPolicyURL;
17
- owner;
18
- verifyKey;
19
- team;
20
- guildId;
21
- guild;
22
- primarySKUId;
23
- slug;
24
- coverImage;
25
- flags;
26
- approximateGuildCount;
27
- redirectURIs;
28
- interactionsEndpointURL;
29
- roleConnectionsVerificationURL;
30
- tags;
31
- installParams;
32
- customInstallURL;
33
- constructor(data, client) {
34
- super(data.id, client);
35
- this.raw = data;
36
- this.name = data.name;
37
- this.icon = data.icon;
38
- this.description = data.description;
39
- this.botPublic = data.bot_public;
40
- this.botRequireCodeGrant = data.bot_require_code_grant;
41
- this.verifyKey = data.verify_key;
42
- this.team = null;
43
- this.patch(data);
44
- }
45
- patch(data) {
46
- if (data.rpc_origins !== undefined)
47
- this.rpcOrigins = data.rpc_origins;
48
- if (data.terms_of_service_url !== undefined)
49
- this.termsOfServiceURL = data.terms_of_service_url;
50
- if (data.owner !== undefined)
51
- this.owner = new _1.User(data.owner, this.client);
52
- if (data.team !== undefined)
53
- this.team = data.team !== null ? new _1.Team(data.team, this.client) : null;
54
- if (data.guild_id !== undefined)
55
- this.guildId = data.guild_id;
56
- if (data.guild !== undefined)
57
- this.guild = new _1.Guild(data.guild, this.client);
58
- if (data.primary_sku_id !== undefined)
59
- this.primarySKUId = data.primary_sku_id;
60
- if (data.slug !== undefined)
61
- this.slug = data.slug;
62
- if (data.cover_image !== undefined)
63
- this.coverImage = data.cover_image;
64
- if (data.flags !== undefined)
65
- this.flags = data.flags;
66
- if (data.approximate_guild_count !== undefined)
67
- this.approximateGuildCount = data.approximate_guild_count;
68
- if (data.redirect_uris !== undefined)
69
- this.redirectURIs = data.redirect_uris;
70
- if (data.interactions_endpoint_url !== undefined)
71
- this.interactionsEndpointURL = data.interactions_endpoint_url;
72
- if (data.role_connections_verification_url !== undefined)
73
- this.roleConnectionsVerificationURL =
74
- data.role_connections_verification_url;
75
- if (data.tags !== undefined)
76
- this.tags = data.tags;
77
- if (data.install_params !== undefined)
78
- this.installParams = data.install_params;
79
- if (data.custom_install_url !== undefined)
80
- this.customInstallURL = data.custom_install_url;
81
- }
82
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
83
- async bulkEditGlobalApplicationCommands(commands) {
84
- return this.client.rest
85
- .put(rest_1.Endpoints.applicationCommands(this.id), {
86
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
87
- })
88
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
89
- }
90
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
91
- async bulkEditGuildApplicationCommands(guildId, commands) {
92
- return this.client.rest
93
- .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
94
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
95
- })
96
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
97
- }
98
- /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
99
- async createGlobalApplicationCommand(options) {
100
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
101
- json: this.client.util.applicationCommandToRaw(options),
102
- }), this.client);
103
- }
104
- /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
105
- async createGuildApplicationCommand(guildId, options) {
106
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
107
- json: this.client.util.applicationCommandToRaw(options),
108
- }), this.client);
109
- }
110
- /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
111
- async createTestEntitlement(options) {
112
- return new _1.TestEntitlement(await this.client.rest.post(rest_1.Endpoints.applicationEntitlements(this.id), {
113
- json: {
114
- sku_id: options.skuId,
115
- owner_id: options.ownerId,
116
- owner_type: options.ownerType,
117
- },
118
- }), this.client);
119
- }
120
- /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
121
- deleteGlobalApplicationCommand(commandId) {
122
- this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
123
- }
124
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
125
- deleteGuildApplicationCommand(guildId, commandId) {
126
- this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
127
- }
128
- /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
129
- deleteTestEntitlement(entitlementId) {
130
- this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
131
- }
132
- /** https://discord.com/developers/docs/resources/application#edit-current-application */
133
- async edit(options) {
134
- return new Application(await this.client.rest.patch(rest_1.Endpoints.applicationCurrentUser(), {
135
- json: {
136
- custom_install_url: options.customInstallURL,
137
- description: options.description,
138
- role_connections_verification_url: options.roleConnectionsVerificationURL,
139
- install_params: options.installParams,
140
- flags: options.flags,
141
- icon: options.icon,
142
- cover_image: options.coverImage,
143
- interactions_endpoint_url: options.interactionsEndpointURL,
144
- tags: options.tags,
145
- },
146
- }), this.client);
147
- }
148
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
149
- async editApplicationCommandPermissions(guildId, commandId, options) {
150
- return this.client.rest
151
- .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
152
- json: {
153
- permissions: options.permissions.map((option) => ({
154
- id: option.id,
155
- application_id: option.applicationId,
156
- guild_id: option.guildId,
157
- permissions: option.permissions.map((permission) => ({
158
- id: permission.id,
159
- type: permission.type,
160
- permission: permission.permission,
161
- })),
162
- })),
163
- },
164
- })
165
- .then((response) => ({
166
- id: response.id,
167
- applicationId: response.application_id,
168
- guildId: response.guild_id,
169
- permissions: response.permissions.map((permission) => ({
170
- id: permission.id,
171
- type: permission.type,
172
- permission: permission.permission,
173
- })),
174
- }));
175
- }
176
- /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
177
- async editGlobalApplicationCommand(commandId, options) {
178
- return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationCommand(this.id, commandId), {
179
- json: this.client.util.applicationCommandToRaw(options),
180
- }), this.client);
181
- }
182
- /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
183
- async editGuildApplicationCommand(guildId, commandId, options) {
184
- return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
185
- json: this.client.util.applicationCommandToRaw(options),
186
- }), this.client);
187
- }
188
- /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
189
- async getApplicationCommandPermissions(guildId, commandId) {
190
- return this.client.rest
191
- .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
192
- .then((response) => response.map((permissions) => ({
193
- id: permissions.id,
194
- applicationId: permissions.application_id,
195
- guildId: permissions.guild_id,
196
- permissions: permissions.permissions.map((permission) => ({
197
- id: permission.id,
198
- type: permission.type,
199
- permission: permission.permission,
200
- })),
201
- })));
202
- }
203
- /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
204
- async getEntitlements(options) {
205
- return this.client.rest
206
- .get(rest_1.Endpoints.applicationEntitlements(this.id), {
207
- query: {
208
- user_id: options?.userId,
209
- sku_ids: options?.skuIds,
210
- before: options?.before,
211
- after: options?.after,
212
- limit: options?.limit,
213
- guild_id: options?.guildId,
214
- exclude_ended: options?.excludeEnded,
215
- },
216
- })
217
- .then((response) => response.map((data) => new _1.Entitlement(data, this.client)));
218
- }
219
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
220
- async getGlobalApplicationCommand(commandId) {
221
- return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
222
- }
223
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
224
- async getGlobalApplicationCommands(options) {
225
- return this.client.rest
226
- .get(rest_1.Endpoints.applicationCommands(this.id), {
227
- query: {
228
- with_localizations: options.withLocalizations,
229
- },
230
- })
231
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
232
- }
233
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
234
- async getGuildApplicationCommand(guildId, commandId) {
235
- return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId)), this.client);
236
- }
237
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
238
- async getGuildApplicationCommands(guildId, options) {
239
- return this.client.rest
240
- .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
241
- query: {
242
- with_localizations: options?.withLocalizations,
243
- },
244
- })
245
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
246
- }
247
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions */
248
- async getGuildApplicationCommandPermissions(guildId) {
249
- return this.client.rest
250
- .get(rest_1.Endpoints.guildApplicationCommandsPermissions(this.id, guildId))
251
- .then((response) => response.map((permissions) => ({
252
- id: permissions.id,
253
- applicationId: permissions.application_id,
254
- guildId: permissions.guild_id,
255
- permissions: permissions.permissions.map((permission) => ({
256
- id: permission.id,
257
- type: permission.type,
258
- permission: permission.permission,
259
- })),
260
- })));
261
- }
262
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
263
- async getApplicationRoleConnectionMetadataRecords() {
264
- return this.client.rest
265
- .get(rest_1.Endpoints.applicationRoleConnectionMetadata(this.id))
266
- .then((response) => response.map((data) => ({
267
- type: data.type,
268
- key: data.key,
269
- name: data.name,
270
- nameLocalizations: data.name_localizations,
271
- description: data.description,
272
- descriptionLocalizations: data.description_localizations,
273
- })));
274
- }
275
- /** https://discord.com/developers/docs/monetization/skus#list-skus */
276
- async getSKUs() {
277
- return this.client.rest
278
- .get(rest_1.Endpoints.applicationSKUs(this.id))
279
- .then((response) => response.map((data) => new _1.SKU(data, this.client)));
280
- }
281
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
282
- async updateApplicationRoleConnectionMetadataRecords() {
283
- return this.client.rest
284
- .put(rest_1.Endpoints.applicationRoleConnectionMetadata(this.id))
285
- .then((response) => response.map((data) => ({
286
- type: data.type,
287
- key: data.key,
288
- name: data.name,
289
- nameLocalizations: data.name_localizations,
290
- description: data.description,
291
- descriptionLocalizations: data.description_localizations,
292
- })));
293
- }
294
- toRaw() {
295
- return this.raw;
296
- }
297
- toJSON() {
298
- return {
299
- ...super.toJSON(),
300
- name: this.name,
301
- icon: this.icon,
302
- description: this.description,
303
- rpcOrigins: this.rpcOrigins,
304
- botPublic: this.botPublic,
305
- botRequireCodeGrant: this.botRequireCodeGrant,
306
- termsOfServiceURL: this.termsOfServiceURL,
307
- privacyPolicyURL: this.privacyPolicyURL,
308
- owner: this.owner?.toJSON(),
309
- verifyKey: this.verifyKey,
310
- team: this.team?.toJSON() ?? null,
311
- guildId: this.guildId,
312
- guild: this.guild?.toJSON(),
313
- primarySKUId: this.primarySKUId,
314
- slug: this.slug,
315
- coverImage: this.coverImage,
316
- flags: this.flags,
317
- approximateGuildCount: this.approximateGuildCount,
318
- redirectURIs: this.redirectURIs,
319
- interactionsEndpointURL: this.interactionsEndpointURL,
320
- roleConnectionsVerificationURL: this.roleConnectionsVerificationURL,
321
- tags: this.tags,
322
- installParams: this.installParams,
323
- customInstallURL: this.customInstallURL,
324
- };
325
- }
326
- }
327
- exports.Application = Application;
328
- //# sourceMappingURL=Application.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Application.js","sourceRoot":"","sources":["../../src/structures/Application.ts"],"names":[],"mappings":";;;AAAA,wBASW;AAeX,kCAAoC;AASpC,gEAAgE;AAChE,MAAa,WAAY,SAAQ,OAAI;IAChB,GAAG,CAAiB;IACvC,IAAI,CAAS;IACb,IAAI,CAAgB;IACpB,WAAW,CAAS;IACpB,UAAU,CAAiB;IAC3B,SAAS,CAAU;IACnB,m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AC,KAAK,EAAE,MAAM,EAAE;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;YACrD,8BAA8B,EAAE,IAAI,CAAC,8BAA8B;YACnE,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;SACxC,CAAC;IACJ,CAAC;CACF;AApuBD,kCAouBC"}
@@ -1,74 +0,0 @@
1
- import type { Client } from "../Client";
2
- import type { JSONApplicationCommand, JSONApplicationCommandOption, JSONApplicationCommandOptionChoice, JSONApplicationCommandPermission, JSONGuildApplicationCommandPermissions, RawApplicationCommand } from "../types";
3
- import type { ApplicationCommandOptionType, ApplicationCommandTypes, ChannelTypes, Locale } from "../constants";
4
- import { Base } from ".";
5
- /** https://discord.com/developers/docs/interactions/application-commands */
6
- export declare class ApplicationCommand extends Base {
7
- protected raw: RawApplicationCommand;
8
- type?: ApplicationCommandTypes;
9
- applicationId: string;
10
- guildId?: string;
11
- name: string;
12
- nameLocalizations?: Partial<Record<Locale, string>> | null;
13
- description: string;
14
- descriptionLocalizations?: Partial<Record<Locale, string>> | null;
15
- options?: Array<JSONApplicationCommandOption>;
16
- defaultMemberPermissions: string | null;
17
- dmPermission?: boolean;
18
- defaultPermission?: boolean | null;
19
- nsfw?: boolean;
20
- version: string;
21
- constructor(data: RawApplicationCommand, client: Client);
22
- protected patch(data: RawApplicationCommand): void;
23
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
24
- delete(): void;
25
- /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
26
- edit(options: {
27
- name?: string;
28
- nameLocalizations?: Partial<Record<Locale, string>> | null;
29
- description?: string;
30
- descriptionLocalizations?: Partial<Record<Locale, string>> | null;
31
- options?: Array<{
32
- type: ApplicationCommandOptionType;
33
- name: string;
34
- nameLocalizations?: Partial<Record<Locale, string>>;
35
- description: string;
36
- descriptionLocalizations?: Partial<Record<Locale, string>>;
37
- required?: boolean;
38
- choices?: Array<JSONApplicationCommandOptionChoice>;
39
- options: Array<{
40
- type: ApplicationCommandOptionType;
41
- name: string;
42
- nameLocalizations?: Partial<Record<Locale, string>>;
43
- description: string;
44
- descriptionLocalizations?: Partial<Record<Locale, string>>;
45
- required?: boolean;
46
- choices?: Array<JSONApplicationCommandOptionChoice>;
47
- channelTypes?: Array<ChannelTypes>;
48
- minValue?: number;
49
- maxValue?: number;
50
- minLength?: number;
51
- maxLength?: number;
52
- autocomplete?: boolean;
53
- }>;
54
- channelTypes?: Array<ChannelTypes>;
55
- minValue?: number;
56
- maxValue?: number;
57
- minLength?: number;
58
- maxLength?: number;
59
- autocomplete?: boolean;
60
- }>;
61
- defaultMemberPermissions?: string | null;
62
- defaultPermission?: boolean | null;
63
- dmPermission?: boolean;
64
- nsfw?: boolean;
65
- }): Promise<ApplicationCommand>;
66
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
67
- editPermissions(options: {
68
- permissions: Array<JSONApplicationCommandPermission>;
69
- }): Promise<JSONGuildApplicationCommandPermissions>;
70
- /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
71
- getPermissions(): Promise<JSONGuildApplicationCommandPermissions>;
72
- toRaw(): RawApplicationCommand;
73
- toJSON(): JSONApplicationCommand;
74
- }
@@ -1,127 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApplicationCommand = void 0;
4
- const rest_1 = require("../rest");
5
- const _1 = require(".");
6
- /** https://discord.com/developers/docs/interactions/application-commands */
7
- class ApplicationCommand extends _1.Base {
8
- raw;
9
- type;
10
- applicationId;
11
- guildId;
12
- name;
13
- nameLocalizations;
14
- description;
15
- descriptionLocalizations;
16
- options;
17
- defaultMemberPermissions;
18
- dmPermission;
19
- defaultPermission;
20
- nsfw;
21
- version;
22
- constructor(data, client) {
23
- super(data.id, client);
24
- this.raw = data;
25
- this.applicationId = data.application_id;
26
- this.name = data.name;
27
- this.description = data.description;
28
- this.defaultMemberPermissions = data.default_member_permissions;
29
- this.version = data.version;
30
- this.patch(data);
31
- }
32
- patch(data) {
33
- if (data.type !== undefined)
34
- this.type = data.type;
35
- if (data.guild_id !== undefined)
36
- this.guildId = data.guild_id;
37
- if (data.name_localizations !== undefined)
38
- this.nameLocalizations = data.name_localizations;
39
- if (data.description_localizations !== undefined)
40
- this.descriptionLocalizations = data.description_localizations;
41
- if (data.options !== undefined)
42
- this.options = data.options;
43
- if (data.dm_permission !== undefined)
44
- this.dmPermission = data.dm_permission;
45
- if (data.default_permission !== undefined)
46
- this.defaultPermission = data.default_permission;
47
- if (data.nsfw !== undefined)
48
- this.nsfw = data.nsfw;
49
- }
50
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
51
- delete() {
52
- this.guildId !== undefined
53
- ? this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.applicationId, this.guildId, this.id))
54
- : this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.applicationId, this.id));
55
- }
56
- /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
57
- async edit(options) {
58
- return new ApplicationCommand(this.guildId !== undefined
59
- ? await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, this.guildId, this.id), {
60
- json: this.client.util.applicationCommandToRaw(options),
61
- })
62
- : await this.client.rest.patch(rest_1.Endpoints.applicationCommand(this.applicationId, this.id), {
63
- json: this.client.util.applicationCommandToRaw(options),
64
- }), this.client);
65
- }
66
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
67
- async editPermissions(options) {
68
- if (!this.guildId)
69
- throw new Error("[disgroove] Cannot edit the permissions of a global application command");
70
- return this.client.rest
71
- .put(rest_1.Endpoints.applicationCommandPermissions(this.applicationId, this.guildId, this.id), {
72
- json: {
73
- permissions: options.permissions,
74
- },
75
- })
76
- .then((response) => ({
77
- id: response.id,
78
- applicationId: response.application_id,
79
- guildId: response.guild_id,
80
- permissions: response.permissions.map((permission) => ({
81
- id: permission.id,
82
- type: permission.type,
83
- permission: permission.permission,
84
- })),
85
- }));
86
- }
87
- /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
88
- async getPermissions() {
89
- if (!this.guildId)
90
- throw new Error("[disgroove] Cannot get the permissions of a global application command");
91
- return this.client.rest
92
- .get(rest_1.Endpoints.applicationCommandPermissions(this.applicationId, this.guildId, this.id))
93
- .then((response) => ({
94
- id: response.id,
95
- applicationId: response.application_id,
96
- guildId: response.guild_id,
97
- permissions: response.permissions.map((permission) => ({
98
- id: permission.id,
99
- type: permission.type,
100
- permission: permission.permission,
101
- })),
102
- }));
103
- }
104
- toRaw() {
105
- return this.raw;
106
- }
107
- toJSON() {
108
- return {
109
- ...super.toJSON(),
110
- type: this.type,
111
- applicationId: this.applicationId,
112
- guildId: this.guildId,
113
- name: this.name,
114
- nameLocalizations: this.nameLocalizations,
115
- description: this.description,
116
- descriptionLocalizations: this.descriptionLocalizations,
117
- options: this.options,
118
- defaultMemberPermissions: this.defaultMemberPermissions,
119
- dmPermission: this.dmPermission,
120
- defaultPermission: this.defaultPermission,
121
- nsfw: this.nsfw,
122
- version: this.version,
123
- };
124
- }
125
- }
126
- exports.ApplicationCommand = ApplicationCommand;
127
- //# sourceMappingURL=ApplicationCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApplicationCommand.js","sourceRoot":"","sources":["../../src/structures/ApplicationCommand.ts"],"names":[],"mappings":";;;AACA,kCAAoC;AAgBpC,wBAAyB;AAEzB,4EAA4E;AAC5E,MAAa,kBAAmB,SAAQ,OAAI;IACvB,GAAG,CAAwB;IAC9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AE,CACR,CACF;aACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACnB,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,aAAa,EAAE,QAAQ,CAAC,cAAc;YACtC,OAAO,EAAE,QAAQ,CAAC,QAAQ;YAC1B,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;gBACrD,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,UAAU,EAAE,UAAU,CAAC,UAAU;aAClC,CAAC,CAAC;SACJ,CAAC,CAAC,CAAC;IACR,CAAC;IAEQ,KAAK;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AAzMD,gDAyMC"}
@@ -1,21 +0,0 @@
1
- import { ApplicationCommand, AutoModerationRule, Channel, GuildScheduledEvent, Integration, User, Webhook } from ".";
2
- import type { Client } from "../Client";
3
- import type { JSONAuditLog, JSONAuditLogEntry, RawAuditLog } from "../types";
4
- import { Collection } from "../utils";
5
- /** https://discord.com/developers/docs/resources/audit-log */
6
- export declare class AuditLog {
7
- private client;
8
- private raw;
9
- applicationCommands: Collection<string, ApplicationCommand>;
10
- auditLogEntries: Collection<string, JSONAuditLogEntry>;
11
- autoModerationRules: Collection<string, AutoModerationRule>;
12
- guildScheduledEvents: Collection<string, GuildScheduledEvent>;
13
- integrations: Collection<string, Integration>;
14
- threads: Collection<string, Channel>;
15
- users: Collection<string, User>;
16
- webhooks: Collection<string, Webhook>;
17
- constructor(data: RawAuditLog, client: Client);
18
- toString(): string;
19
- toRaw(): RawAuditLog;
20
- toJSON(): JSONAuditLog;
21
- }