disgroove 1.2.9 → 1.3.0-dev.3af784e

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 (108) hide show
  1. package/dist/Client.d.ts +43 -43
  2. package/dist/Client.js +76 -76
  3. package/dist/Client.js.map +1 -1
  4. package/dist/gateway/Shard.js +32 -36
  5. package/dist/gateway/Shard.js.map +1 -1
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/rest/Endpoints.d.ts +1 -1
  10. package/dist/rest/Endpoints.js +3 -3
  11. package/dist/rest/RequestsManager.js +1 -1
  12. package/dist/rest/RequestsManager.js.map +1 -1
  13. package/dist/structures/Application.d.ts +72 -72
  14. package/dist/structures/Application.js +128 -155
  15. package/dist/structures/Application.js.map +1 -1
  16. package/dist/structures/ApplicationCommand.d.ts +4 -4
  17. package/dist/structures/ApplicationCommand.js +19 -19
  18. package/dist/structures/ApplicationCommand.js.map +1 -1
  19. package/dist/structures/AuditLog.d.ts +20 -0
  20. package/dist/structures/AuditLog.js +76 -0
  21. package/dist/structures/AuditLog.js.map +1 -0
  22. package/dist/structures/AutoModerationRule.d.ts +7 -7
  23. package/dist/structures/AutoModerationRule.js +7 -7
  24. package/dist/structures/AutoModerationRule.js.map +1 -1
  25. package/dist/structures/Channel.d.ts +134 -134
  26. package/dist/structures/Channel.js +263 -263
  27. package/dist/structures/Channel.js.map +1 -1
  28. package/dist/structures/ClientApplication.d.ts +324 -0
  29. package/dist/structures/ClientApplication.js +241 -0
  30. package/dist/structures/ClientApplication.js.map +1 -0
  31. package/dist/structures/Emoji.d.ts +2 -2
  32. package/dist/structures/Emoji.js +9 -9
  33. package/dist/structures/Emoji.js.map +1 -1
  34. package/dist/structures/Entitlement.d.ts +24 -0
  35. package/dist/structures/Entitlement.js +68 -0
  36. package/dist/structures/Entitlement.js.map +1 -0
  37. package/dist/structures/Guild.d.ts +311 -311
  38. package/dist/structures/Guild.js +615 -661
  39. package/dist/structures/Guild.js.map +1 -1
  40. package/dist/structures/GuildMember.d.ts +10 -10
  41. package/dist/structures/GuildMember.js +30 -30
  42. package/dist/structures/GuildMember.js.map +1 -1
  43. package/dist/structures/GuildScheduledEvent.d.ts +2 -2
  44. package/dist/structures/GuildScheduledEvent.js +7 -7
  45. package/dist/structures/GuildScheduledEvent.js.map +1 -1
  46. package/dist/structures/GuildTemplate.d.ts +4 -4
  47. package/dist/structures/GuildTemplate.js +7 -9
  48. package/dist/structures/GuildTemplate.js.map +1 -1
  49. package/dist/structures/Integration.d.ts +1 -1
  50. package/dist/structures/Integration.js +2 -2
  51. package/dist/structures/Integration.js.map +1 -1
  52. package/dist/structures/Interaction.d.ts +27 -42
  53. package/dist/structures/Interaction.js +97 -130
  54. package/dist/structures/Interaction.js.map +1 -1
  55. package/dist/structures/Invite.d.ts +2 -1
  56. package/dist/structures/Invite.js +1 -1
  57. package/dist/structures/Invite.js.map +1 -1
  58. package/dist/structures/Message.d.ts +23 -20
  59. package/dist/structures/Message.js +71 -206
  60. package/dist/structures/Message.js.map +1 -1
  61. package/dist/structures/PartialApplication.d.ts +70 -70
  62. package/dist/structures/PartialApplication.js +128 -155
  63. package/dist/structures/PartialApplication.js.map +1 -1
  64. package/dist/structures/Role.d.ts +2 -2
  65. package/dist/structures/Role.js +7 -7
  66. package/dist/structures/Role.js.map +1 -1
  67. package/dist/structures/SKU.d.ts +23 -0
  68. package/dist/structures/SKU.js +63 -0
  69. package/dist/structures/SKU.js.map +1 -0
  70. package/dist/structures/StageInstance.d.ts +3 -3
  71. package/dist/structures/StageInstance.js +7 -7
  72. package/dist/structures/StageInstance.js.map +1 -1
  73. package/dist/structures/Sticker.d.ts +2 -2
  74. package/dist/structures/Sticker.js +9 -9
  75. package/dist/structures/Sticker.js.map +1 -1
  76. package/dist/structures/Team.js +2 -2
  77. package/dist/structures/Team.js.map +1 -1
  78. package/dist/structures/TestEntitlement.d.ts +23 -0
  79. package/dist/structures/TestEntitlement.js +61 -0
  80. package/dist/structures/TestEntitlement.js.map +1 -0
  81. package/dist/structures/UnavailableGuild.d.ts +2 -487
  82. package/dist/structures/UnavailableGuild.js +1 -917
  83. package/dist/structures/UnavailableGuild.js.map +1 -1
  84. package/dist/structures/User.d.ts +13 -13
  85. package/dist/structures/User.js +35 -34
  86. package/dist/structures/User.js.map +1 -1
  87. package/dist/structures/Webhook.d.ts +26 -26
  88. package/dist/structures/Webhook.js +116 -148
  89. package/dist/structures/Webhook.js.map +1 -1
  90. package/dist/structures/index.d.ts +5 -1
  91. package/dist/structures/index.js +5 -1
  92. package/dist/structures/index.js.map +1 -1
  93. package/dist/types/application.d.ts +3 -3
  94. package/dist/types/auto-moderation.d.ts +3 -3
  95. package/dist/types/channel.d.ts +36 -21
  96. package/dist/types/gateway-events.d.ts +12 -12
  97. package/dist/types/guild.d.ts +5 -5
  98. package/dist/types/interaction.d.ts +57 -40
  99. package/dist/types/invite.d.ts +3 -2
  100. package/dist/types/message-components.d.ts +4 -4
  101. package/dist/types/sku.d.ts +1 -1
  102. package/dist/types/stage-instance.d.ts +3 -2
  103. package/dist/types/team.d.ts +1 -1
  104. package/dist/types/user.d.ts +3 -3
  105. package/dist/utils/Util.d.ts +11 -482
  106. package/dist/utils/Util.js +329 -151
  107. package/dist/utils/Util.js.map +1 -1
  108. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { Base, ApplicationCommand, Application } from ".";
2
- import type { JSONGuildApplicationCommandPermissions, RawApplication, JSONApplication, JSONApplicationCommandOptionChoice, JSONApplicationRoleConnectionMetadata, JSONSKU, JSONEntitlement, JSONInstallParams } from "../types";
1
+ import { Base, ApplicationCommand, Application, SKU, Entitlement, TestEntitlement } from ".";
2
+ import type { JSONGuildApplicationCommandPermissions, RawApplication, JSONApplication, JSONApplicationCommandOptionChoice, JSONApplicationRoleConnectionMetadata, JSONInstallParams } from "../types";
3
3
  import type { Client } from "../Client";
4
4
  import type { ApplicationCommandOptionType, ApplicationCommandTypes, ChannelTypes, Locale } from "../constants";
5
5
  export declare class PartialApplication extends Base {
@@ -7,24 +7,9 @@ export declare class PartialApplication extends Base {
7
7
  flags?: number;
8
8
  constructor(data: Pick<RawApplication, "id" | "flags">, client: Client);
9
9
  protected patch(data: Pick<RawApplication, "id" | "flags">): void;
10
- /** https://discord.com/developers/docs/resources/application#edit-current-application */
11
- edit(options: {
12
- customInstallURL?: string;
13
- description?: string;
14
- roleConnectionsVerificationURL?: string;
15
- installParams?: JSONInstallParams;
16
- flags?: number;
17
- icon?: string;
18
- coverImage?: string;
19
- interactionsEndpointURL?: string;
20
- tags?: Array<string>;
21
- }): Promise<Application>;
22
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
23
- getGlobalApplicationCommands(options: {
24
- withLocalizations?: boolean;
25
- }): Promise<Array<ApplicationCommand>>;
26
- /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
27
- createGlobalApplicationCommand(options: {
10
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
11
+ bulkEditGlobalApplicationCommands(commands: Array<{
12
+ id?: string;
28
13
  name: string;
29
14
  nameLocalizations?: Partial<Record<Locale, string>> | null;
30
15
  description?: string;
@@ -64,11 +49,10 @@ export declare class PartialApplication extends Base {
64
49
  defaultPermission?: boolean | null;
65
50
  type?: ApplicationCommandTypes;
66
51
  nsfw?: boolean;
67
- }): Promise<ApplicationCommand>;
68
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
69
- getGlobalApplicationCommand(commandId: string): Promise<ApplicationCommand>;
70
- /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
71
- editGlobalApplicationCommand(commandId: string, options: {
52
+ }>): Promise<Array<ApplicationCommand>>;
53
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
54
+ bulkEditGuildApplicationCommands(guildId: string, commands: Array<{
55
+ id?: string;
72
56
  name?: string;
73
57
  nameLocalizations?: Partial<Record<Locale, string>> | null;
74
58
  description?: string;
@@ -104,15 +88,13 @@ export declare class PartialApplication extends Base {
104
88
  autocomplete?: boolean;
105
89
  }>;
106
90
  defaultMemberPermissions?: string | null;
107
- defaultPermission?: boolean | null;
108
91
  dmPermission?: boolean;
92
+ defaultPermission?: boolean | null;
93
+ type: ApplicationCommandTypes;
109
94
  nsfw?: boolean;
110
- }): Promise<ApplicationCommand>;
111
- /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
112
- deleteGlobalApplicationCommand(commandId: string): void;
113
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
114
- bulkOverwriteGlobalApplicationCommands(commands: Array<{
115
- id?: string;
95
+ }>): Promise<Array<ApplicationCommand>>;
96
+ /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
97
+ createGlobalApplicationCommand(options: {
116
98
  name: string;
117
99
  nameLocalizations?: Partial<Record<Locale, string>> | null;
118
100
  description?: string;
@@ -152,11 +134,7 @@ export declare class PartialApplication extends Base {
152
134
  defaultPermission?: boolean | null;
153
135
  type?: ApplicationCommandTypes;
154
136
  nsfw?: boolean;
155
- }>): Promise<Array<ApplicationCommand>>;
156
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
157
- getGuildApplicationCommands(guildId: string, options?: {
158
- withLocalizations?: boolean;
159
- }): Promise<Array<ApplicationCommand>>;
137
+ }): Promise<ApplicationCommand>;
160
138
  /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
161
139
  createGuildApplicationCommand(guildId: string, options: {
162
140
  name?: string;
@@ -199,10 +177,36 @@ export declare class PartialApplication extends Base {
199
177
  type?: ApplicationCommandTypes;
200
178
  nsfw?: boolean;
201
179
  }): Promise<ApplicationCommand>;
202
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
203
- getGuildApplicationCommand(guildId: string, commandId: string): Promise<ApplicationCommand>;
204
- /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
205
- editGuildApplicationCommand(guildId: string, commandId: string, options: {
180
+ /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
181
+ createTestEntitlement(options: {
182
+ skuId: string;
183
+ ownerId: string;
184
+ ownerType: number;
185
+ }): Promise<TestEntitlement>;
186
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
187
+ deleteGlobalApplicationCommand(commandId: string): void;
188
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
189
+ deleteGuildApplicationCommand(guildId: string, commandId: string): void;
190
+ /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
191
+ deleteTestEntitlement(entitlementId: string): void;
192
+ /** https://discord.com/developers/docs/resources/application#edit-current-application */
193
+ edit(options: {
194
+ customInstallURL?: string;
195
+ description?: string;
196
+ roleConnectionsVerificationURL?: string;
197
+ installParams?: JSONInstallParams;
198
+ flags?: number;
199
+ icon?: string;
200
+ coverImage?: string;
201
+ interactionsEndpointURL?: string;
202
+ tags?: Array<string>;
203
+ }): Promise<Application>;
204
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
205
+ editApplicationCommandPermissions(guildId: string, commandId: string, options: {
206
+ permissions: Array<JSONGuildApplicationCommandPermissions>;
207
+ }): Promise<JSONGuildApplicationCommandPermissions>;
208
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
209
+ editGlobalApplicationCommand(commandId: string, options: {
206
210
  name?: string;
207
211
  nameLocalizations?: Partial<Record<Locale, string>> | null;
208
212
  description?: string;
@@ -242,11 +246,8 @@ export declare class PartialApplication extends Base {
242
246
  dmPermission?: boolean;
243
247
  nsfw?: boolean;
244
248
  }): Promise<ApplicationCommand>;
245
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
246
- deleteGuildApplicationCommand(guildId: string, commandId: string): void;
247
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
248
- bulkOverwriteGuildApplicationCommands(guildId: string, commands: Array<{
249
- id?: string;
249
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
250
+ editGuildApplicationCommand(guildId: string, commandId: string, options: {
250
251
  name?: string;
251
252
  nameLocalizations?: Partial<Record<Locale, string>> | null;
252
253
  description?: string;
@@ -282,25 +283,12 @@ export declare class PartialApplication extends Base {
282
283
  autocomplete?: boolean;
283
284
  }>;
284
285
  defaultMemberPermissions?: string | null;
285
- dmPermission?: boolean;
286
286
  defaultPermission?: boolean | null;
287
- type: ApplicationCommandTypes;
287
+ dmPermission?: boolean;
288
288
  nsfw?: boolean;
289
- }>): Promise<Array<ApplicationCommand>>;
290
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions */
291
- getGuildApplicationCommandPermissions(guildId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
289
+ }): Promise<ApplicationCommand>;
292
290
  /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
293
291
  getApplicationCommandPermissions(guildId: string, commandId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
294
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
295
- editApplicationCommandPermissions(guildId: string, commandId: string, options: {
296
- permissions: Array<JSONGuildApplicationCommandPermissions>;
297
- }): Promise<JSONGuildApplicationCommandPermissions>;
298
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
299
- getApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
300
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
301
- updateApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
302
- /** https://discord.com/developers/docs/monetization/skus#list-skus */
303
- getSKUs(): Promise<Array<JSONSKU>>;
304
292
  /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
305
293
  getEntitlements(options?: {
306
294
  userId?: string;
@@ -310,15 +298,27 @@ export declare class PartialApplication extends Base {
310
298
  limit?: number;
311
299
  guildId?: string;
312
300
  excludeEnded?: boolean;
313
- }): Promise<Array<JSONEntitlement>>;
314
- /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
315
- createTestEntitlement(options: {
316
- skuId: string;
317
- ownerId: string;
318
- ownerType: number;
319
- }): Promise<Pick<JSONEntitlement, "id" | "applicationId" | "deleted" | "guildId" | "skuId" | "type" | "userId">>;
320
- /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
321
- deleteTestEntitlement(entitlementId: string): void;
301
+ }): Promise<Array<Entitlement>>;
302
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
303
+ getGlobalApplicationCommand(commandId: string): Promise<ApplicationCommand>;
304
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
305
+ getGlobalApplicationCommands(options: {
306
+ withLocalizations?: boolean;
307
+ }): Promise<Array<ApplicationCommand>>;
308
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
309
+ getGuildApplicationCommand(guildId: string, commandId: string): Promise<ApplicationCommand>;
310
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
311
+ getGuildApplicationCommands(guildId: string, options?: {
312
+ withLocalizations?: 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>>;
316
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
317
+ getApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
318
+ /** https://discord.com/developers/docs/monetization/skus#list-skus */
319
+ getSKUs(): Promise<Array<SKU>>;
320
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
321
+ updateApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
322
322
  toRaw(): Pick<RawApplication, "id" | "flags">;
323
323
  toJSON(): Pick<JSONApplication, "id" | "flags">;
324
324
  }
@@ -15,6 +15,56 @@ class PartialApplication extends _1.Base {
15
15
  if (data.flags !== undefined)
16
16
  this.flags = data.flags;
17
17
  }
18
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
19
+ async bulkEditGlobalApplicationCommands(commands) {
20
+ return this.client.rest
21
+ .put(rest_1.Endpoints.applicationCommands(this.id), {
22
+ json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
23
+ })
24
+ .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
25
+ }
26
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
27
+ async bulkEditGuildApplicationCommands(guildId, commands) {
28
+ return this.client.rest
29
+ .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
30
+ json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
31
+ })
32
+ .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
33
+ }
34
+ /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
35
+ async createGlobalApplicationCommand(options) {
36
+ return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
37
+ json: this.client.util.applicationCommandToRaw(options),
38
+ }), this.client);
39
+ }
40
+ /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
41
+ async createGuildApplicationCommand(guildId, options) {
42
+ return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
43
+ json: this.client.util.applicationCommandToRaw(options),
44
+ }), this.client);
45
+ }
46
+ /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
47
+ async createTestEntitlement(options) {
48
+ return new _1.TestEntitlement(await this.client.rest.post(rest_1.Endpoints.applicationEntitlements(this.id), {
49
+ json: {
50
+ sku_id: options.skuId,
51
+ owner_id: options.ownerId,
52
+ owner_type: options.ownerType,
53
+ },
54
+ }), this.client);
55
+ }
56
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
57
+ deleteGlobalApplicationCommand(commandId) {
58
+ this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
59
+ }
60
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
61
+ deleteGuildApplicationCommand(guildId, commandId) {
62
+ this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
63
+ }
64
+ /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
65
+ deleteTestEntitlement(entitlementId) {
66
+ this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
67
+ }
18
68
  /** https://discord.com/developers/docs/resources/application#edit-current-application */
19
69
  async edit(options) {
20
70
  return new _1.Application(await this.client.rest.patch(rest_1.Endpoints.applicationCurrentUser(), {
@@ -31,25 +81,33 @@ class PartialApplication extends _1.Base {
31
81
  },
32
82
  }), this.client);
33
83
  }
34
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
35
- async getGlobalApplicationCommands(options) {
84
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
85
+ async editApplicationCommandPermissions(guildId, commandId, options) {
36
86
  return this.client.rest
37
- .get(rest_1.Endpoints.applicationCommands(this.id), {
38
- query: {
39
- with_localizations: options.withLocalizations,
87
+ .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
88
+ json: {
89
+ permissions: options.permissions.map((option) => ({
90
+ id: option.id,
91
+ application_id: option.applicationId,
92
+ guild_id: option.guildId,
93
+ permissions: option.permissions.map((permission) => ({
94
+ id: permission.id,
95
+ type: permission.type,
96
+ permission: permission.permission,
97
+ })),
98
+ })),
40
99
  },
41
100
  })
42
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
43
- }
44
- /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
45
- async createGlobalApplicationCommand(options) {
46
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
47
- json: this.client.util.applicationCommandToRaw(options),
48
- }), this.client);
49
- }
50
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
51
- async getGlobalApplicationCommand(commandId) {
52
- return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
101
+ .then((response) => ({
102
+ id: response.id,
103
+ applicationId: response.application_id,
104
+ guildId: response.guild_id,
105
+ permissions: response.permissions.map((permission) => ({
106
+ id: permission.id,
107
+ type: permission.type,
108
+ permission: permission.permission,
109
+ })),
110
+ }));
53
111
  }
54
112
  /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
55
113
  async editGlobalApplicationCommand(commandId, options) {
@@ -57,53 +115,68 @@ class PartialApplication extends _1.Base {
57
115
  json: this.client.util.applicationCommandToRaw(options),
58
116
  }), this.client);
59
117
  }
60
- /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
61
- deleteGlobalApplicationCommand(commandId) {
62
- this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
118
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
119
+ async editGuildApplicationCommand(guildId, commandId, options) {
120
+ return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
121
+ json: this.client.util.applicationCommandToRaw(options),
122
+ }), this.client);
63
123
  }
64
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
65
- async bulkOverwriteGlobalApplicationCommands(commands) {
124
+ /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
125
+ async getApplicationCommandPermissions(guildId, commandId) {
66
126
  return this.client.rest
67
- .put(rest_1.Endpoints.applicationCommands(this.id), {
68
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
127
+ .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
128
+ .then((response) => response.map((permissions) => ({
129
+ id: permissions.id,
130
+ applicationId: permissions.application_id,
131
+ guildId: permissions.guild_id,
132
+ permissions: permissions.permissions.map((permission) => ({
133
+ id: permission.id,
134
+ type: permission.type,
135
+ permission: permission.permission,
136
+ })),
137
+ })));
138
+ }
139
+ /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
140
+ async getEntitlements(options) {
141
+ return this.client.rest
142
+ .get(rest_1.Endpoints.applicationEntitlements(this.id), {
143
+ query: {
144
+ user_id: options?.userId,
145
+ sku_ids: options?.skuIds,
146
+ before: options?.before,
147
+ after: options?.after,
148
+ limit: options?.limit,
149
+ guild_id: options?.guildId,
150
+ exclude_ended: options?.excludeEnded,
151
+ },
69
152
  })
70
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
153
+ .then((response) => response.map((data) => new _1.Entitlement(data, this.client)));
71
154
  }
72
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
73
- async getGuildApplicationCommands(guildId, options) {
155
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
156
+ async getGlobalApplicationCommand(commandId) {
157
+ return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
158
+ }
159
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
160
+ async getGlobalApplicationCommands(options) {
74
161
  return this.client.rest
75
- .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
162
+ .get(rest_1.Endpoints.applicationCommands(this.id), {
76
163
  query: {
77
- with_localizations: options?.withLocalizations,
164
+ with_localizations: options.withLocalizations,
78
165
  },
79
166
  })
80
167
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
81
168
  }
82
- /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
83
- async createGuildApplicationCommand(guildId, options) {
84
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
85
- json: this.client.util.applicationCommandToRaw(options),
86
- }), this.client);
87
- }
88
169
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
89
170
  async getGuildApplicationCommand(guildId, commandId) {
90
171
  return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId)), this.client);
91
172
  }
92
- /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
93
- async editGuildApplicationCommand(guildId, commandId, options) {
94
- return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
95
- json: this.client.util.applicationCommandToRaw(options),
96
- }), this.client);
97
- }
98
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
99
- deleteGuildApplicationCommand(guildId, commandId) {
100
- this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
101
- }
102
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
103
- async bulkOverwriteGuildApplicationCommands(guildId, commands) {
173
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
174
+ async getGuildApplicationCommands(guildId, options) {
104
175
  return this.client.rest
105
- .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
106
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
176
+ .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
177
+ query: {
178
+ with_localizations: options?.withLocalizations,
179
+ },
107
180
  })
108
181
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
109
182
  }
@@ -122,49 +195,6 @@ class PartialApplication extends _1.Base {
122
195
  })),
123
196
  })));
124
197
  }
125
- /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
126
- async getApplicationCommandPermissions(guildId, commandId) {
127
- return this.client.rest
128
- .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
129
- .then((response) => response.map((permissions) => ({
130
- id: permissions.id,
131
- applicationId: permissions.application_id,
132
- guildId: permissions.guild_id,
133
- permissions: permissions.permissions.map((permission) => ({
134
- id: permission.id,
135
- type: permission.type,
136
- permission: permission.permission,
137
- })),
138
- })));
139
- }
140
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
141
- async editApplicationCommandPermissions(guildId, commandId, options) {
142
- return this.client.rest
143
- .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
144
- json: {
145
- permissions: options.permissions.map((option) => ({
146
- id: option.id,
147
- application_id: option.applicationId,
148
- guild_id: option.guildId,
149
- permissions: option.permissions.map((permission) => ({
150
- id: permission.id,
151
- type: permission.type,
152
- permission: permission.permission,
153
- })),
154
- })),
155
- },
156
- })
157
- .then((response) => ({
158
- id: response.id,
159
- applicationId: response.application_id,
160
- guildId: response.guild_id,
161
- permissions: response.permissions.map((permission) => ({
162
- id: permission.id,
163
- type: permission.type,
164
- permission: permission.permission,
165
- })),
166
- }));
167
- }
168
198
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
169
199
  async getApplicationRoleConnectionMetadataRecords() {
170
200
  return this.client.rest
@@ -178,6 +208,12 @@ class PartialApplication extends _1.Base {
178
208
  descriptionLocalizations: data.description_localizations,
179
209
  })));
180
210
  }
211
+ /** https://discord.com/developers/docs/monetization/skus#list-skus */
212
+ async getSKUs() {
213
+ return this.client.rest
214
+ .get(rest_1.Endpoints.applicationSKUs(this.id))
215
+ .then((response) => response.map((data) => new _1.SKU(data, this.client)));
216
+ }
181
217
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
182
218
  async updateApplicationRoleConnectionMetadataRecords() {
183
219
  return this.client.rest
@@ -191,75 +227,12 @@ class PartialApplication extends _1.Base {
191
227
  descriptionLocalizations: data.description_localizations,
192
228
  })));
193
229
  }
194
- /** https://discord.com/developers/docs/monetization/skus#list-skus */
195
- async getSKUs() {
196
- return this.client.rest
197
- .get(rest_1.Endpoints.applicationSKUs(this.id))
198
- .then((response) => response.map((data) => ({
199
- id: data.id,
200
- type: data.type,
201
- applicationId: data.application_id,
202
- name: data.name,
203
- slug: data.slug,
204
- flags: data.flags,
205
- })));
206
- }
207
- /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
208
- async getEntitlements(options) {
209
- return this.client.rest
210
- .get(rest_1.Endpoints.applicationEntitlements(this.id), {
211
- query: {
212
- user_id: options?.userId,
213
- sku_ids: options?.skuIds,
214
- before: options?.before,
215
- after: options?.after,
216
- limit: options?.limit,
217
- guild_id: options?.guildId,
218
- exclude_ended: options?.excludeEnded,
219
- },
220
- })
221
- .then((response) => response.map((data) => ({
222
- id: data.id,
223
- applicationId: data.application_id,
224
- deleted: data.deleted,
225
- guildId: data.guild_id,
226
- skuId: data.sku_id,
227
- type: data.type,
228
- userId: data.user_id,
229
- startsAt: data.starts_at,
230
- endsAt: data.ends_at,
231
- })));
232
- }
233
- /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
234
- async createTestEntitlement(options) {
235
- return this.client.rest
236
- .post(rest_1.Endpoints.applicationEntitlements(this.id), {
237
- json: {
238
- sku_id: options.skuId,
239
- owner_id: options.ownerId,
240
- owner_type: options.ownerType,
241
- },
242
- })
243
- .then((response) => ({
244
- id: response.id,
245
- applicationId: response.application_id,
246
- deleted: response.deleted,
247
- guildId: response.guild_id,
248
- skuId: response.sku_id,
249
- type: response.type,
250
- userId: response.user_id,
251
- }));
252
- }
253
- /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
254
- deleteTestEntitlement(entitlementId) {
255
- this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
256
- }
257
230
  toRaw() {
258
231
  return this.raw;
259
232
  }
260
233
  toJSON() {
261
234
  return {
262
- id: this.id,
235
+ ...super.toJSON(),
263
236
  flags: this.flags,
264
237
  };
265
238
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PartialApplication.js","s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