disgroove 1.2.9-dev.e013266 → 1.3.0-dev.4d9f89d

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 (75) hide show
  1. package/dist/Client.d.ts +37 -37
  2. package/dist/Client.js +75 -75
  3. package/dist/Client.js.map +1 -1
  4. package/dist/constants.d.ts +1 -0
  5. package/dist/constants.js +1 -0
  6. package/dist/constants.js.map +1 -1
  7. package/dist/gateway/Shard.js +27 -1
  8. package/dist/gateway/Shard.js.map +1 -1
  9. package/dist/rest/RequestsManager.js +1 -1
  10. package/dist/structures/Application.d.ts +67 -67
  11. package/dist/structures/Application.js +150 -150
  12. package/dist/structures/Application.js.map +1 -1
  13. package/dist/structures/ApplicationCommand.d.ts +4 -4
  14. package/dist/structures/ApplicationCommand.js +19 -19
  15. package/dist/structures/ApplicationCommand.js.map +1 -1
  16. package/dist/structures/AutoModerationRule.d.ts +2 -2
  17. package/dist/structures/AutoModerationRule.js +7 -7
  18. package/dist/structures/AutoModerationRule.js.map +1 -1
  19. package/dist/structures/Channel.d.ts +126 -126
  20. package/dist/structures/Channel.js +258 -258
  21. package/dist/structures/Channel.js.map +1 -1
  22. package/dist/structures/Emoji.d.ts +2 -2
  23. package/dist/structures/Emoji.js +9 -9
  24. package/dist/structures/Emoji.js.map +1 -1
  25. package/dist/structures/Guild.d.ts +305 -305
  26. package/dist/structures/Guild.js +617 -624
  27. package/dist/structures/Guild.js.map +1 -1
  28. package/dist/structures/GuildMember.d.ts +9 -9
  29. package/dist/structures/GuildMember.js +30 -30
  30. package/dist/structures/GuildMember.js.map +1 -1
  31. package/dist/structures/GuildScheduledEvent.d.ts +2 -2
  32. package/dist/structures/GuildScheduledEvent.js +5 -5
  33. package/dist/structures/GuildScheduledEvent.js.map +1 -1
  34. package/dist/structures/GuildTemplate.d.ts +4 -4
  35. package/dist/structures/GuildTemplate.js +9 -9
  36. package/dist/structures/GuildTemplate.js.map +1 -1
  37. package/dist/structures/Integration.js +2 -2
  38. package/dist/structures/Integration.js.map +1 -1
  39. package/dist/structures/Interaction.d.ts +24 -24
  40. package/dist/structures/Interaction.js +88 -67
  41. package/dist/structures/Interaction.js.map +1 -1
  42. package/dist/structures/Invite.js +1 -1
  43. package/dist/structures/Invite.js.map +1 -1
  44. package/dist/structures/Message.d.ts +20 -17
  45. package/dist/structures/Message.js +81 -55
  46. package/dist/structures/Message.js.map +1 -1
  47. package/dist/structures/PartialApplication.d.ts +67 -67
  48. package/dist/structures/PartialApplication.js +150 -150
  49. package/dist/structures/PartialApplication.js.map +1 -1
  50. package/dist/structures/Role.d.ts +2 -2
  51. package/dist/structures/Role.js +7 -7
  52. package/dist/structures/Role.js.map +1 -1
  53. package/dist/structures/StageInstance.d.ts +2 -2
  54. package/dist/structures/StageInstance.js +7 -7
  55. package/dist/structures/StageInstance.js.map +1 -1
  56. package/dist/structures/Sticker.d.ts +2 -2
  57. package/dist/structures/Sticker.js +9 -9
  58. package/dist/structures/Sticker.js.map +1 -1
  59. package/dist/structures/Team.js +2 -2
  60. package/dist/structures/Team.js.map +1 -1
  61. package/dist/structures/UnavailableGuild.d.ts +305 -305
  62. package/dist/structures/UnavailableGuild.js +609 -610
  63. package/dist/structures/UnavailableGuild.js.map +1 -1
  64. package/dist/structures/User.d.ts +11 -11
  65. package/dist/structures/User.js +35 -34
  66. package/dist/structures/User.js.map +1 -1
  67. package/dist/structures/Webhook.d.ts +26 -26
  68. package/dist/structures/Webhook.js +115 -147
  69. package/dist/structures/Webhook.js.map +1 -1
  70. package/dist/types/interaction.d.ts +12 -12
  71. package/dist/types/message-components.d.ts +4 -4
  72. package/dist/utils/Util.d.ts +8 -482
  73. package/dist/utils/Util.js +169 -150
  74. package/dist/utils/Util.js.map +1 -1
  75. package/package.json +2 -2
@@ -24,7 +24,7 @@ class RequestsManager {
24
24
  url.searchParams.set(key, String(value));
25
25
  }
26
26
  let headers = {
27
- "User-Agent": `DiscordBot (https://github.com/XenKys/disgroove, 1.2.9-dev.e013266)`,
27
+ "User-Agent": `DiscordBot (https://github.com/XenKys/disgroove, 1.3.0-dev.4d9f89d)`,
28
28
  Authorization: `${this.auth} ${this.token}`,
29
29
  };
30
30
  let body;
@@ -31,24 +31,9 @@ export declare class Application extends Base {
31
31
  customInstallURL?: string;
32
32
  constructor(data: RawApplication, client: Client);
33
33
  protected patch(data: RawApplication): void;
34
- /** https://discord.com/developers/docs/resources/application#edit-current-application */
35
- edit(options: {
36
- customInstallURL?: string;
37
- description?: string;
38
- roleConnectionsVerificationURL?: string;
39
- installParams?: JSONInstallParams;
40
- flags?: number;
41
- icon?: string;
42
- coverImage?: string;
43
- interactionsEndpointURL?: string;
44
- tags?: Array<string>;
45
- }): Promise<Application>;
46
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
47
- getGlobalApplicationCommands(options: {
48
- withLocalizations?: boolean;
49
- }): Promise<Array<ApplicationCommand>>;
50
- /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
51
- createGlobalApplicationCommand(options: {
34
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
35
+ bulkEditGlobalApplicationCommands(commands: Array<{
36
+ id?: string;
52
37
  name: string;
53
38
  nameLocalizations?: Partial<Record<Locale, string>> | null;
54
39
  description?: string;
@@ -88,11 +73,10 @@ export declare class Application extends Base {
88
73
  defaultPermission?: boolean | null;
89
74
  type?: ApplicationCommandTypes;
90
75
  nsfw?: boolean;
91
- }): Promise<ApplicationCommand>;
92
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
93
- getGlobalApplicationCommand(commandId: string): Promise<ApplicationCommand>;
94
- /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
95
- editGlobalApplicationCommand(commandId: string, options: {
76
+ }>): Promise<Array<ApplicationCommand>>;
77
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
78
+ bulkEditGuildApplicationCommands(guildId: string, commands: Array<{
79
+ id?: string;
96
80
  name?: string;
97
81
  nameLocalizations?: Partial<Record<Locale, string>> | null;
98
82
  description?: string;
@@ -128,15 +112,13 @@ export declare class Application extends Base {
128
112
  autocomplete?: boolean;
129
113
  }>;
130
114
  defaultMemberPermissions?: string | null;
131
- defaultPermission?: boolean | null;
132
115
  dmPermission?: boolean;
116
+ defaultPermission?: boolean | null;
117
+ type: ApplicationCommandTypes;
133
118
  nsfw?: boolean;
134
- }): Promise<ApplicationCommand>;
135
- /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
136
- deleteGlobalApplicationCommand(commandId: string): void;
137
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
138
- bulkOverwriteGlobalApplicationCommands(commands: Array<{
139
- id?: string;
119
+ }>): Promise<Array<ApplicationCommand>>;
120
+ /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
121
+ createGlobalApplicationCommand(options: {
140
122
  name: string;
141
123
  nameLocalizations?: Partial<Record<Locale, string>> | null;
142
124
  description?: string;
@@ -176,11 +158,7 @@ export declare class Application extends Base {
176
158
  defaultPermission?: boolean | null;
177
159
  type?: ApplicationCommandTypes;
178
160
  nsfw?: boolean;
179
- }>): Promise<Array<ApplicationCommand>>;
180
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
181
- getGuildApplicationCommands(guildId: string, options?: {
182
- withLocalizations?: boolean;
183
- }): Promise<Array<ApplicationCommand>>;
161
+ }): Promise<ApplicationCommand>;
184
162
  /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
185
163
  createGuildApplicationCommand(guildId: string, options: {
186
164
  name?: string;
@@ -223,10 +201,36 @@ export declare class Application extends Base {
223
201
  type?: ApplicationCommandTypes;
224
202
  nsfw?: boolean;
225
203
  }): Promise<ApplicationCommand>;
226
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
227
- getGuildApplicationCommand(guildId: string, commandId: string): Promise<ApplicationCommand>;
228
- /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
229
- editGuildApplicationCommand(guildId: string, commandId: string, options: {
204
+ /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
205
+ createTestEntitlement(options: {
206
+ skuId: string;
207
+ ownerId: string;
208
+ ownerType: number;
209
+ }): Promise<Pick<JSONEntitlement, "id" | "applicationId" | "deleted" | "guildId" | "skuId" | "type" | "userId">>;
210
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
211
+ deleteGlobalApplicationCommand(commandId: string): void;
212
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
213
+ deleteGuildApplicationCommand(guildId: string, commandId: string): void;
214
+ /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
215
+ deleteTestEntitlement(entitlementId: string): void;
216
+ /** https://discord.com/developers/docs/resources/application#edit-current-application */
217
+ edit(options: {
218
+ customInstallURL?: string;
219
+ description?: string;
220
+ roleConnectionsVerificationURL?: string;
221
+ installParams?: JSONInstallParams;
222
+ flags?: number;
223
+ icon?: string;
224
+ coverImage?: string;
225
+ interactionsEndpointURL?: string;
226
+ tags?: Array<string>;
227
+ }): Promise<Application>;
228
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
229
+ editApplicationCommandPermissions(guildId: string, commandId: string, options: {
230
+ permissions: Array<JSONGuildApplicationCommandPermissions>;
231
+ }): Promise<JSONGuildApplicationCommandPermissions>;
232
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
233
+ editGlobalApplicationCommand(commandId: string, options: {
230
234
  name?: string;
231
235
  nameLocalizations?: Partial<Record<Locale, string>> | null;
232
236
  description?: string;
@@ -266,11 +270,8 @@ export declare class Application extends Base {
266
270
  dmPermission?: boolean;
267
271
  nsfw?: boolean;
268
272
  }): Promise<ApplicationCommand>;
269
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
270
- deleteGuildApplicationCommand(guildId: string, commandId: string): void;
271
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
272
- bulkOverwriteGuildApplicationCommands(guildId: string, commands: Array<{
273
- id?: string;
273
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
274
+ editGuildApplicationCommand(guildId: string, commandId: string, options: {
274
275
  name?: string;
275
276
  nameLocalizations?: Partial<Record<Locale, string>> | null;
276
277
  description?: string;
@@ -306,25 +307,12 @@ export declare class Application extends Base {
306
307
  autocomplete?: boolean;
307
308
  }>;
308
309
  defaultMemberPermissions?: string | null;
309
- dmPermission?: boolean;
310
310
  defaultPermission?: boolean | null;
311
- type: ApplicationCommandTypes;
311
+ dmPermission?: boolean;
312
312
  nsfw?: boolean;
313
- }>): Promise<Array<ApplicationCommand>>;
314
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions */
315
- getGuildApplicationCommandPermissions(guildId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
313
+ }): Promise<ApplicationCommand>;
316
314
  /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
317
315
  getApplicationCommandPermissions(guildId: string, commandId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
318
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
319
- editApplicationCommandPermissions(guildId: string, commandId: string, options: {
320
- permissions: Array<JSONGuildApplicationCommandPermissions>;
321
- }): Promise<JSONGuildApplicationCommandPermissions>;
322
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
323
- getApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
324
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
325
- updateApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
326
- /** https://discord.com/developers/docs/monetization/skus#list-skus */
327
- getSKUs(): Promise<Array<JSONSKU>>;
328
316
  /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
329
317
  getEntitlements(options?: {
330
318
  userId?: string;
@@ -335,14 +323,26 @@ export declare class Application extends Base {
335
323
  guildId?: string;
336
324
  excludeEnded?: boolean;
337
325
  }): Promise<Array<JSONEntitlement>>;
338
- /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
339
- createTestEntitlement(options: {
340
- skuId: string;
341
- ownerId: string;
342
- ownerType: number;
343
- }): Promise<Pick<JSONEntitlement, "id" | "applicationId" | "deleted" | "guildId" | "skuId" | "type" | "userId">>;
344
- /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
345
- deleteTestEntitlement(entitlementId: string): void;
326
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
327
+ getGlobalApplicationCommand(commandId: string): Promise<ApplicationCommand>;
328
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
329
+ getGlobalApplicationCommands(options: {
330
+ withLocalizations?: boolean;
331
+ }): Promise<Array<ApplicationCommand>>;
332
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
333
+ getGuildApplicationCommand(guildId: string, commandId: string): Promise<ApplicationCommand>;
334
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
335
+ getGuildApplicationCommands(guildId: string, options?: {
336
+ withLocalizations?: boolean;
337
+ }): Promise<Array<ApplicationCommand>>;
338
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions */
339
+ getGuildApplicationCommandPermissions(guildId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
340
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
341
+ getApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
342
+ /** https://discord.com/developers/docs/monetization/skus#list-skus */
343
+ getSKUs(): Promise<Array<JSONSKU>>;
344
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
345
+ updateApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
346
346
  toRaw(): RawApplication;
347
347
  toJSON(): JSONApplication;
348
348
  }
@@ -79,6 +79,66 @@ class Application extends _1.Base {
79
79
  if (data.custom_install_url !== undefined)
80
80
  this.customInstallURL = data.custom_install_url;
81
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 this.client.rest
113
+ .post(rest_1.Endpoints.applicationEntitlements(this.id), {
114
+ json: {
115
+ sku_id: options.skuId,
116
+ owner_id: options.ownerId,
117
+ owner_type: options.ownerType,
118
+ },
119
+ })
120
+ .then((response) => ({
121
+ id: response.id,
122
+ applicationId: response.application_id,
123
+ deleted: response.deleted,
124
+ guildId: response.guild_id,
125
+ skuId: response.sku_id,
126
+ type: response.type,
127
+ userId: response.user_id,
128
+ }));
129
+ }
130
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
131
+ deleteGlobalApplicationCommand(commandId) {
132
+ this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
133
+ }
134
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
135
+ deleteGuildApplicationCommand(guildId, commandId) {
136
+ this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
137
+ }
138
+ /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
139
+ deleteTestEntitlement(entitlementId) {
140
+ this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
141
+ }
82
142
  /** https://discord.com/developers/docs/resources/application#edit-current-application */
83
143
  async edit(options) {
84
144
  return new Application(await this.client.rest.patch(rest_1.Endpoints.applicationCurrentUser(), {
@@ -95,25 +155,33 @@ class Application extends _1.Base {
95
155
  },
96
156
  }), this.client);
97
157
  }
98
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
99
- async getGlobalApplicationCommands(options) {
158
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
159
+ async editApplicationCommandPermissions(guildId, commandId, options) {
100
160
  return this.client.rest
101
- .get(rest_1.Endpoints.applicationCommands(this.id), {
102
- query: {
103
- with_localizations: options.withLocalizations,
161
+ .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
162
+ json: {
163
+ permissions: options.permissions.map((option) => ({
164
+ id: option.id,
165
+ application_id: option.applicationId,
166
+ guild_id: option.guildId,
167
+ permissions: option.permissions.map((permission) => ({
168
+ id: permission.id,
169
+ type: permission.type,
170
+ permission: permission.permission,
171
+ })),
172
+ })),
104
173
  },
105
174
  })
106
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
107
- }
108
- /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
109
- async createGlobalApplicationCommand(options) {
110
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
111
- json: this.client.util.applicationCommandToRaw(options),
112
- }), this.client);
113
- }
114
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
115
- async getGlobalApplicationCommand(commandId) {
116
- return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
175
+ .then((response) => ({
176
+ id: response.id,
177
+ applicationId: response.application_id,
178
+ guildId: response.guild_id,
179
+ permissions: response.permissions.map((permission) => ({
180
+ id: permission.id,
181
+ type: permission.type,
182
+ permission: permission.permission,
183
+ })),
184
+ }));
117
185
  }
118
186
  /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
119
187
  async editGlobalApplicationCommand(commandId, options) {
@@ -121,53 +189,78 @@ class Application extends _1.Base {
121
189
  json: this.client.util.applicationCommandToRaw(options),
122
190
  }), this.client);
123
191
  }
124
- /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
125
- deleteGlobalApplicationCommand(commandId) {
126
- this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
192
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
193
+ async editGuildApplicationCommand(guildId, commandId, options) {
194
+ return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
195
+ json: this.client.util.applicationCommandToRaw(options),
196
+ }), this.client);
127
197
  }
128
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
129
- async bulkOverwriteGlobalApplicationCommands(commands) {
198
+ /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
199
+ async getApplicationCommandPermissions(guildId, commandId) {
130
200
  return this.client.rest
131
- .put(rest_1.Endpoints.applicationCommands(this.id), {
132
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
201
+ .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
202
+ .then((response) => response.map((permissions) => ({
203
+ id: permissions.id,
204
+ applicationId: permissions.application_id,
205
+ guildId: permissions.guild_id,
206
+ permissions: permissions.permissions.map((permission) => ({
207
+ id: permission.id,
208
+ type: permission.type,
209
+ permission: permission.permission,
210
+ })),
211
+ })));
212
+ }
213
+ /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
214
+ async getEntitlements(options) {
215
+ return this.client.rest
216
+ .get(rest_1.Endpoints.applicationEntitlements(this.id), {
217
+ query: {
218
+ user_id: options?.userId,
219
+ sku_ids: options?.skuIds,
220
+ before: options?.before,
221
+ after: options?.after,
222
+ limit: options?.limit,
223
+ guild_id: options?.guildId,
224
+ exclude_ended: options?.excludeEnded,
225
+ },
133
226
  })
134
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
227
+ .then((response) => response.map((data) => ({
228
+ id: data.id,
229
+ applicationId: data.application_id,
230
+ deleted: data.deleted,
231
+ guildId: data.guild_id,
232
+ skuId: data.sku_id,
233
+ type: data.type,
234
+ userId: data.user_id,
235
+ startsAt: data.starts_at,
236
+ endsAt: data.ends_at,
237
+ })));
135
238
  }
136
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
137
- async getGuildApplicationCommands(guildId, options) {
239
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
240
+ async getGlobalApplicationCommand(commandId) {
241
+ return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
242
+ }
243
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
244
+ async getGlobalApplicationCommands(options) {
138
245
  return this.client.rest
139
- .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
246
+ .get(rest_1.Endpoints.applicationCommands(this.id), {
140
247
  query: {
141
- with_localizations: options?.withLocalizations,
248
+ with_localizations: options.withLocalizations,
142
249
  },
143
250
  })
144
251
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
145
252
  }
146
- /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
147
- async createGuildApplicationCommand(guildId, options) {
148
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
149
- json: this.client.util.applicationCommandToRaw(options),
150
- }), this.client);
151
- }
152
253
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
153
254
  async getGuildApplicationCommand(guildId, commandId) {
154
255
  return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId)), this.client);
155
256
  }
156
- /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
157
- async editGuildApplicationCommand(guildId, commandId, options) {
158
- return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
159
- json: this.client.util.applicationCommandToRaw(options),
160
- }), this.client);
161
- }
162
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
163
- deleteGuildApplicationCommand(guildId, commandId) {
164
- this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
165
- }
166
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
167
- async bulkOverwriteGuildApplicationCommands(guildId, commands) {
257
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
258
+ async getGuildApplicationCommands(guildId, options) {
168
259
  return this.client.rest
169
- .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
170
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
260
+ .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
261
+ query: {
262
+ with_localizations: options?.withLocalizations,
263
+ },
171
264
  })
172
265
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
173
266
  }
@@ -186,49 +279,6 @@ class Application extends _1.Base {
186
279
  })),
187
280
  })));
188
281
  }
189
- /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
190
- async getApplicationCommandPermissions(guildId, commandId) {
191
- return this.client.rest
192
- .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
193
- .then((response) => response.map((permissions) => ({
194
- id: permissions.id,
195
- applicationId: permissions.application_id,
196
- guildId: permissions.guild_id,
197
- permissions: permissions.permissions.map((permission) => ({
198
- id: permission.id,
199
- type: permission.type,
200
- permission: permission.permission,
201
- })),
202
- })));
203
- }
204
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
205
- async editApplicationCommandPermissions(guildId, commandId, options) {
206
- return this.client.rest
207
- .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
208
- json: {
209
- permissions: options.permissions.map((option) => ({
210
- id: option.id,
211
- application_id: option.applicationId,
212
- guild_id: option.guildId,
213
- permissions: option.permissions.map((permission) => ({
214
- id: permission.id,
215
- type: permission.type,
216
- permission: permission.permission,
217
- })),
218
- })),
219
- },
220
- })
221
- .then((response) => ({
222
- id: response.id,
223
- applicationId: response.application_id,
224
- guildId: response.guild_id,
225
- permissions: response.permissions.map((permission) => ({
226
- id: permission.id,
227
- type: permission.type,
228
- permission: permission.permission,
229
- })),
230
- }));
231
- }
232
282
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
233
283
  async getApplicationRoleConnectionMetadataRecords() {
234
284
  return this.client.rest
@@ -242,19 +292,6 @@ class Application extends _1.Base {
242
292
  descriptionLocalizations: data.description_localizations,
243
293
  })));
244
294
  }
245
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
246
- async updateApplicationRoleConnectionMetadataRecords() {
247
- return this.client.rest
248
- .put(rest_1.Endpoints.applicationRoleConnectionMetadata(this.id))
249
- .then((response) => response.map((data) => ({
250
- type: data.type,
251
- key: data.key,
252
- name: data.name,
253
- nameLocalizations: data.name_localizations,
254
- description: data.description,
255
- descriptionLocalizations: data.description_localizations,
256
- })));
257
- }
258
295
  /** https://discord.com/developers/docs/monetization/skus#list-skus */
259
296
  async getSKUs() {
260
297
  return this.client.rest
@@ -268,62 +305,25 @@ class Application extends _1.Base {
268
305
  flags: data.flags,
269
306
  })));
270
307
  }
271
- /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
272
- async getEntitlements(options) {
308
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
309
+ async updateApplicationRoleConnectionMetadataRecords() {
273
310
  return this.client.rest
274
- .get(rest_1.Endpoints.applicationEntitlements(this.id), {
275
- query: {
276
- user_id: options?.userId,
277
- sku_ids: options?.skuIds,
278
- before: options?.before,
279
- after: options?.after,
280
- limit: options?.limit,
281
- guild_id: options?.guildId,
282
- exclude_ended: options?.excludeEnded,
283
- },
284
- })
311
+ .put(rest_1.Endpoints.applicationRoleConnectionMetadata(this.id))
285
312
  .then((response) => response.map((data) => ({
286
- id: data.id,
287
- applicationId: data.application_id,
288
- deleted: data.deleted,
289
- guildId: data.guild_id,
290
- skuId: data.sku_id,
291
313
  type: data.type,
292
- userId: data.user_id,
293
- startsAt: data.starts_at,
294
- endsAt: data.ends_at,
314
+ key: data.key,
315
+ name: data.name,
316
+ nameLocalizations: data.name_localizations,
317
+ description: data.description,
318
+ descriptionLocalizations: data.description_localizations,
295
319
  })));
296
320
  }
297
- /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
298
- async createTestEntitlement(options) {
299
- return this.client.rest
300
- .post(rest_1.Endpoints.applicationEntitlements(this.id), {
301
- json: {
302
- sku_id: options.skuId,
303
- owner_id: options.ownerId,
304
- owner_type: options.ownerType,
305
- },
306
- })
307
- .then((response) => ({
308
- id: response.id,
309
- applicationId: response.application_id,
310
- deleted: response.deleted,
311
- guildId: response.guild_id,
312
- skuId: response.sku_id,
313
- type: response.type,
314
- userId: response.user_id,
315
- }));
316
- }
317
- /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
318
- deleteTestEntitlement(entitlementId) {
319
- this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
320
- }
321
321
  toRaw() {
322
322
  return this.raw;
323
323
  }
324
324
  toJSON() {
325
325
  return {
326
- id: this.id,
326
+ ...super.toJSON(),
327
327
  name: this.name,
328
328
  icon: this.icon,
329
329
  description: this.description,
@@ -1 +1 @@
1
- {"version":3,"file":"Application.js","sourceRoot":"","sources":["../../src/structures/Application.ts"],"names":[],"mappings":";;;AAAA,wBAAgE;AAiBhE,kCAAoC;AAQpC,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,mBAAmB,CAAU;IAC7B,iBAAiB,CAAU;IAC3B,gBAAgB,CAAU;IAC1B,KAAK,CAAQ;IACb,SAAS,CAAS;IAClB,IAAI,CAAc;IAClB,OAAO,CAAU;IACjB,KAAK,CAAS;IACd,YAAY,CAAU;IACtB,IAAI,CAAU;IACd,UAAU,CAAU;IACpB,KAAK,CAAU;IACf,qBAAqB,CAAU;IAC/B,YAAY,CAAiB;IAC7B,uBAAuB,CAAU;IACjC,8BAA8B,CAAU;IACxC,IAAI,CAAiB;IACrB,aAAa,CAAqB;IAClC,gBAAgB,CAAU;IAE1B,YAAY,IAAoB,EAAE,MAAc;QAC9C,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,WA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E,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI;YACjC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,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;AAlxBD,kCAkxBC"}
1
+ {"version":3,"file":"Application.js","sourceRoot":"","sources":["../../src/structures/Application.ts"],"names":[],"mappings":";;;AAAA,wBAAgE;AAiBhE,kCAAoC;AAQpC,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,mBAAmB,CAAU;IAC7B,iBAAiB,CAAU;IAC3B,gBAAgB,CAAU;IAC1B,KAAK,CAAQ;IACb,SAAS,CAAS;IAClB,IAAI,CAAc;IAClB,OAAO,CAAU;IACjB,KAAK,CAAS;IACd,YAAY,CAAU;IACtB,IAAI,CAAU;IACd,UAAU,CAAU;IACpB,KAAK,CAAU;IACf,qBAAqB,CAAU;IAC/B,YAAY,CAAiB;IAC7B,uBAAuB,CAAU;IACjC,8BAA8B,CAAU;IACxC,IAAI,CAAiB;IACrB,aAAa,CAAqB;IAClC,gBAAgB,CA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