disgroove 1.3.1-dev.6068992 → 1.3.1-dev.f29c081

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.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AuditLog = void 0;
4
4
  const _1 = require(".");
5
- const utils_1 = require("../utils");
6
5
  /** https://discord.com/developers/docs/resources/audit-log */
7
6
  class AuditLog {
8
7
  client;
@@ -18,57 +17,41 @@ class AuditLog {
18
17
  constructor(data, client) {
19
18
  this.client = client;
20
19
  this.raw = data;
21
- this.applicationCommands = new utils_1.Collection();
22
- this.auditLogEntries = new utils_1.Collection();
23
- this.autoModerationRules = new utils_1.Collection();
24
- this.guildScheduledEvents = new utils_1.Collection();
25
- this.integrations = new utils_1.Collection();
26
- this.threads = new utils_1.Collection();
27
- this.users = new utils_1.Collection();
28
- this.webhooks = new utils_1.Collection();
29
- for (const applicationCommand of data.application_commands)
30
- this.applicationCommands.set(applicationCommand.id, new _1.ApplicationCommand(applicationCommand, this.client));
31
- for (const auditLogEntry of data.audit_log_entries)
32
- this.auditLogEntries.set(auditLogEntry.id, {
33
- targetId: auditLogEntry.target_id,
34
- changes: auditLogEntry.changes?.map((change) => ({
35
- newValue: change.new_value,
36
- oldValue: change.old_value,
37
- key: change.key,
38
- })),
39
- userId: auditLogEntry.user_id,
40
- id: auditLogEntry.id,
41
- actionType: auditLogEntry.action_type,
42
- options: auditLogEntry.options !== undefined
43
- ? {
44
- applicationId: auditLogEntry.options.application_id,
45
- autoModerationRuleName: auditLogEntry.options.auto_moderation_rule_name,
46
- autoModerationRuleTriggerType: auditLogEntry.options.auto_moderation_rule_trigger_type,
47
- channelId: auditLogEntry.options.channel_id,
48
- count: auditLogEntry.options.count,
49
- deleteMemberDays: auditLogEntry.options.delete_member_days,
50
- id: auditLogEntry.options.id,
51
- membersRemoved: auditLogEntry.options.members_removed,
52
- messageId: auditLogEntry.options.message_id,
53
- roleName: auditLogEntry.options.role_name,
54
- type: auditLogEntry.options.type,
55
- integrationType: auditLogEntry.options.integration_type,
56
- }
57
- : undefined,
58
- reason: auditLogEntry.reason,
59
- });
60
- for (const autoModerationRule of data.auto_moderation_rules)
61
- this.autoModerationRules.set(autoModerationRule.id, new _1.AutoModerationRule(autoModerationRule, this.client));
62
- for (const guildScheduledEvent of data.guild_scheduled_events)
63
- this.guildScheduledEvents.set(guildScheduledEvent.id, new _1.GuildScheduledEvent(guildScheduledEvent, this.client));
64
- for (const integration of data.integrations)
65
- this.integrations.set(integration.id, new _1.Integration(integration, this.client));
66
- for (const thread of data.threads)
67
- this.threads.set(thread.id, new _1.Channel(thread, this.client));
68
- for (const user of data.users)
69
- this.users.set(user.id, new _1.User(user, this.client));
70
- for (const webhook of data.webhooks)
71
- this.webhooks.set(webhook.id, new _1.Webhook(webhook, this.client));
20
+ this.applicationCommands = data.application_commands.map((applicationCommand) => new _1.ApplicationCommand(applicationCommand, this.client));
21
+ this.auditLogEntries = data.audit_log_entries.map((auditLogEntry) => ({
22
+ targetId: auditLogEntry.target_id,
23
+ changes: auditLogEntry.changes?.map((change) => ({
24
+ newValue: change.new_value,
25
+ oldValue: change.old_value,
26
+ key: change.key,
27
+ })),
28
+ userId: auditLogEntry.user_id,
29
+ id: auditLogEntry.id,
30
+ actionType: auditLogEntry.action_type,
31
+ options: auditLogEntry.options !== undefined
32
+ ? {
33
+ applicationId: auditLogEntry.options.application_id,
34
+ autoModerationRuleName: auditLogEntry.options.auto_moderation_rule_name,
35
+ autoModerationRuleTriggerType: auditLogEntry.options.auto_moderation_rule_trigger_type,
36
+ channelId: auditLogEntry.options.channel_id,
37
+ count: auditLogEntry.options.count,
38
+ deleteMemberDays: auditLogEntry.options.delete_member_days,
39
+ id: auditLogEntry.options.id,
40
+ membersRemoved: auditLogEntry.options.members_removed,
41
+ messageId: auditLogEntry.options.message_id,
42
+ roleName: auditLogEntry.options.role_name,
43
+ type: auditLogEntry.options.type,
44
+ integrationType: auditLogEntry.options.integration_type,
45
+ }
46
+ : undefined,
47
+ reason: auditLogEntry.reason,
48
+ }));
49
+ this.autoModerationRules = data.auto_moderation_rules.map((autoModerationRule) => new _1.AutoModerationRule(autoModerationRule, this.client));
50
+ this.guildScheduledEvents = data.guild_scheduled_events.map((guildScheduledEvent) => new _1.GuildScheduledEvent(guildScheduledEvent, this.client));
51
+ this.integrations = data.integrations.map((integration) => new _1.Integration(integration, this.client));
52
+ this.threads = data.threads.map((thread) => new _1.Channel(thread, this.client));
53
+ this.users = data.users.map((user) => new _1.User(user, this.client));
54
+ this.webhooks = data.webhooks.map((webhook) => new _1.Webhook(webhook, this.client));
72
55
  }
73
56
  toString() {
74
57
  return `[${this.constructor.name}]`;
@@ -78,26 +61,14 @@ class AuditLog {
78
61
  }
79
62
  toJSON() {
80
63
  return {
81
- applicationCommands: new utils_1.Collection(this.applicationCommands?.map((applicationCommand) => [
82
- applicationCommand.id,
83
- applicationCommand.toJSON(),
84
- ])),
64
+ applicationCommands: this.applicationCommands.map((applicationCommand) => applicationCommand.toJSON()),
85
65
  auditLogEntries: this.auditLogEntries,
86
- autoModerationRules: new utils_1.Collection(this.autoModerationRules?.map((autoModerationRule) => [
87
- autoModerationRule.id,
88
- autoModerationRule.toJSON(),
89
- ])),
90
- guildScheduledEvents: new utils_1.Collection(this.guildScheduledEvents?.map((guildScheduledEvent) => [
91
- guildScheduledEvent.id,
92
- guildScheduledEvent.toJSON(),
93
- ])),
94
- integrations: new utils_1.Collection(this.integrations?.map((integration) => [
95
- integration.id,
96
- integration.toJSON(),
97
- ])),
98
- threads: new utils_1.Collection(this.threads?.map((thread) => [thread.id, thread.toJSON()])),
99
- users: new utils_1.Collection(this.users?.map((user) => [user.id, user.toJSON()])),
100
- webhooks: new utils_1.Collection(this.webhooks?.map((webhook) => [webhook.id, webhook.toJSON()])),
66
+ autoModerationRules: this.autoModerationRules.map((autoModerationRule) => autoModerationRule.toJSON()),
67
+ guildScheduledEvents: this.guildScheduledEvents.map((guildScheduledEvent) => guildScheduledEvent.toJSON()),
68
+ integrations: this.integrations.map((integration) => integration.toJSON()),
69
+ threads: this.threads.map((thread) => thread.toJSON()),
70
+ users: this.users.map((user) => user.toJSON()),
71
+ webhooks: this.webhooks.map((webhook) => webhook.toJSON()),
101
72
  };
102
73
  }
103
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AuditLog.js","sourceRoot":"","sources":["../../src/structures/AuditLog.ts"],"names":[],"mappings":";;;AAAA,wBAQW;AAGX,oCAAsC;AAEtC,8DAA8D;AAC9D,MAAa,QAAQ;IACX,MAAM,CAAS;IACf,GAAG,CAAc;IACzB,mBAAmB,CAAyC;IAC5D,eAAe,CAAwC;IACvD,mBAAmB,CAAyC;IAC5D,oBAAoB,CAA0C;IAC9D,YAAY,CAAkC;IAC9C,OAAO,CAA8B;IACrC,KAAK,CAA2B;IAChC,QAAQ,CAA8B;IAEtC,YAAY,IAAiB,EAAE,MAAc;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,mBAAmB,GAAG,IAAI,kBAAU,EAAE,CAAC;QAC5C,IAAI,CAAC,eAAe,GAAG,IAAI,kBAAU,EAAE,CAAC;QACxC,IAAI,CAAC,mBAAmB,GAAG,IAAI,kBAAU,EAAE,CAAC;QAC5C,IAAI,CAAC,oBAAoB,GAAG,IAAI,kBAAU,EAAE,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAU,EAAE,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,kBAAU,EAAE,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,kBAAU,EAAE,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAU,EAAE,CAAC;QAEjC,KAAK,MAAM,kBAAkB,IAAI,IAAI,CAAC,oBAAoB;YACxD,IAAI,CAAC,mBAAmB,CAAC,GAAG,C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AG,CACjD,CAAC,mBAAmB,EAAE,EAAE,CAAC,mBAAmB,CAAC,MAAM,EAAE,CACtD;YACD,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAClD,WAAW,CAAC,MAAM,EAAE,CACrB;YACD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACtD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YAC9C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SAC3D,CAAC;IACJ,CAAC;CACF;AAlGD,4BAkGC"}
@@ -7,9 +7,8 @@ export declare class ClientApplication extends Base {
7
7
  flags?: ApplicationFlags;
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/interactions/application-commands#bulk-overwrite-global-application-commands */
11
- bulkEditGlobalApplicationCommands(commands: Array<{
12
- id?: string;
10
+ /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
11
+ createGlobalApplicationCommand(options: {
13
12
  name: string;
14
13
  nameLocalizations?: Partial<Record<Locale, string>> | null;
15
14
  description?: string;
@@ -49,10 +48,9 @@ export declare class ClientApplication extends Base {
49
48
  defaultPermission?: boolean | null;
50
49
  type?: ApplicationCommandTypes;
51
50
  nsfw?: boolean;
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;
51
+ }): Promise<ApplicationCommand>;
52
+ /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
53
+ createGuildApplicationCommand(guildId: string, options: {
56
54
  name?: string;
57
55
  nameLocalizations?: Partial<Record<Locale, string>> | null;
58
56
  description?: string;
@@ -90,12 +88,40 @@ export declare class ClientApplication extends Base {
90
88
  defaultMemberPermissions?: string | null;
91
89
  dmPermission?: boolean;
92
90
  defaultPermission?: boolean | null;
93
- type: ApplicationCommandTypes;
91
+ type?: ApplicationCommandTypes;
94
92
  nsfw?: boolean;
95
- }>): Promise<Array<ApplicationCommand>>;
96
- /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
97
- createGlobalApplicationCommand(options: {
98
- name: string;
93
+ }): Promise<ApplicationCommand>;
94
+ /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
95
+ createTestEntitlement(options: {
96
+ skuId: string;
97
+ ownerId: string;
98
+ ownerType: number;
99
+ }): Promise<TestEntitlement>;
100
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
101
+ deleteGlobalApplicationCommand(commandId: string): void;
102
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
103
+ deleteGuildApplicationCommand(guildId: string, commandId: string): void;
104
+ /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
105
+ deleteTestEntitlement(entitlementId: string): void;
106
+ /** https://discord.com/developers/docs/resources/application#edit-current-application */
107
+ edit(options: {
108
+ customInstallURL?: string;
109
+ description?: string;
110
+ roleConnectionsVerificationURL?: string;
111
+ installParams?: JSONInstallParams;
112
+ flags?: ApplicationFlags;
113
+ icon?: string;
114
+ coverImage?: string;
115
+ interactionsEndpointURL?: string;
116
+ tags?: Array<string>;
117
+ }): Promise<Application>;
118
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
119
+ editApplicationCommandPermissions(guildId: string, commandId: string, options: {
120
+ permissions: Array<JSONGuildApplicationCommandPermissions>;
121
+ }): Promise<JSONGuildApplicationCommandPermissions>;
122
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
123
+ editGlobalApplicationCommand(commandId: string, options: {
124
+ name?: string;
99
125
  nameLocalizations?: Partial<Record<Locale, string>> | null;
100
126
  description?: string;
101
127
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
@@ -130,13 +156,12 @@ export declare class ClientApplication extends Base {
130
156
  autocomplete?: boolean;
131
157
  }>;
132
158
  defaultMemberPermissions?: string | null;
133
- dmPermission?: boolean;
134
159
  defaultPermission?: boolean | null;
135
- type?: ApplicationCommandTypes;
160
+ dmPermission?: boolean;
136
161
  nsfw?: boolean;
137
162
  }): Promise<ApplicationCommand>;
138
- /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
139
- createGuildApplicationCommand(guildId: string, options: {
163
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
164
+ editGuildApplicationCommand(guildId: string, commandId: string, options: {
140
165
  name?: string;
141
166
  nameLocalizations?: Partial<Record<Locale, string>> | null;
142
167
  description?: string;
@@ -172,42 +197,44 @@ export declare class ClientApplication extends Base {
172
197
  autocomplete?: boolean;
173
198
  }>;
174
199
  defaultMemberPermissions?: string | null;
175
- dmPermission?: boolean;
176
200
  defaultPermission?: boolean | null;
177
- type?: ApplicationCommandTypes;
201
+ dmPermission?: boolean;
178
202
  nsfw?: boolean;
179
203
  }): Promise<ApplicationCommand>;
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?: ApplicationFlags;
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: {
210
- name?: string;
204
+ /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
205
+ getApplicationCommandPermissions(guildId: string, commandId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
206
+ /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
207
+ getEntitlements(options?: {
208
+ userId?: string;
209
+ skuIds?: Array<string>;
210
+ before?: string;
211
+ after?: string;
212
+ limit?: number;
213
+ guildId?: string;
214
+ excludeEnded?: boolean;
215
+ }): Promise<Array<Entitlement>>;
216
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
217
+ getGlobalApplicationCommand(commandId: string): Promise<ApplicationCommand>;
218
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
219
+ getGlobalApplicationCommands(options: {
220
+ withLocalizations?: boolean;
221
+ }): Promise<Array<ApplicationCommand>>;
222
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
223
+ getGuildApplicationCommand(guildId: string, commandId: string): Promise<ApplicationCommand>;
224
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
225
+ getGuildApplicationCommands(guildId: string, options?: {
226
+ withLocalizations?: boolean;
227
+ }): Promise<Array<ApplicationCommand>>;
228
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions */
229
+ getGuildApplicationCommandPermissions(guildId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
230
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
231
+ getApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
232
+ /** https://discord.com/developers/docs/monetization/skus#list-skus */
233
+ getSKUs(): Promise<Array<SKU>>;
234
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
235
+ setGlobalApplicationCommands(commands: Array<{
236
+ id?: string;
237
+ name: string;
211
238
  nameLocalizations?: Partial<Record<Locale, string>> | null;
212
239
  description?: string;
213
240
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
@@ -242,12 +269,14 @@ export declare class ClientApplication extends Base {
242
269
  autocomplete?: boolean;
243
270
  }>;
244
271
  defaultMemberPermissions?: string | null;
245
- defaultPermission?: boolean | null;
246
272
  dmPermission?: boolean;
273
+ defaultPermission?: boolean | null;
274
+ type?: ApplicationCommandTypes;
247
275
  nsfw?: boolean;
248
- }): Promise<ApplicationCommand>;
249
- /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
250
- editGuildApplicationCommand(guildId: string, commandId: string, options: {
276
+ }>): Promise<Array<ApplicationCommand>>;
277
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
278
+ setGuildApplicationCommands(guildId: string, commands: Array<{
279
+ id?: string;
251
280
  name?: string;
252
281
  nameLocalizations?: Partial<Record<Locale, string>> | null;
253
282
  description?: string;
@@ -283,40 +312,11 @@ export declare class ClientApplication extends Base {
283
312
  autocomplete?: boolean;
284
313
  }>;
285
314
  defaultMemberPermissions?: string | null;
286
- defaultPermission?: boolean | null;
287
315
  dmPermission?: boolean;
316
+ defaultPermission?: boolean | null;
317
+ type: ApplicationCommandTypes;
288
318
  nsfw?: boolean;
289
- }): Promise<ApplicationCommand>;
290
- /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
291
- getApplicationCommandPermissions(guildId: string, commandId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
292
- /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
293
- getEntitlements(options?: {
294
- userId?: string;
295
- skuIds?: Array<string>;
296
- before?: string;
297
- after?: string;
298
- limit?: number;
299
- guildId?: string;
300
- excludeEnded?: boolean;
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>>;
319
+ }>): Promise<Array<ApplicationCommand>>;
320
320
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
321
321
  updateApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
322
322
  toRaw(): Pick<RawApplication, "id" | "flags">;
@@ -15,22 +15,6 @@ class ClientApplication 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
18
  /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
35
19
  async createGlobalApplicationCommand(options) {
36
20
  return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
@@ -214,6 +198,22 @@ class ClientApplication extends _1.Base {
214
198
  .get(rest_1.Endpoints.applicationSKUs(this.id))
215
199
  .then((response) => response.map((data) => new _1.SKU(data, this.client)));
216
200
  }
201
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
202
+ async setGlobalApplicationCommands(commands) {
203
+ return this.client.rest
204
+ .put(rest_1.Endpoints.applicationCommands(this.id), {
205
+ json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
206
+ })
207
+ .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
208
+ }
209
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
210
+ async setGuildApplicationCommands(guildId, commands) {
211
+ return this.client.rest
212
+ .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
213
+ json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
214
+ })
215
+ .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
216
+ }
217
217
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
218
218
  async updateApplicationRoleConnectionMetadataRecords() {
219
219
  return this.client.rest
@@ -1 +1 @@
1
- {"version":3,"file":"ClientApplication.js","sourceRoot":"","sources":["../../src/structures/ClientApplication.ts"],"names":[],"mappings":";;;AAAA,wBAOW;AAeX,kCAAoC;AASpC,MAAa,iBAAkB,SAAQ,OAAI;IACtB,GAAG,CAAuC;IAC7D,KAAK,CAAoB;IAEzB,YAAY,IAA0C,EAAE,MAAc;QACpE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAEhB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAEkB,KAAK,CAAC,IAA0C;QACjE,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;YAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACxD,CAAC;IAED,uHAAuH;IACvH,KAAK,CAAC,iCAAiC,CACrC,QAyCE;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI;aACpB,GAAG,CACF,gBAAS,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC,EACtC;YACE,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAC7B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAClD;SACF,CACF;aACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjB,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,qBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAClE,CAAC;IACN,CAAC;IAED,sHAAsH;IACtH,KAAK,CAAC,gCAAgC,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;IAC7I,KAAK,CAAC,8CAA8C;QAGlD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI;aACpB,GAAG,CACF,gBAAS,CAAC,iCAAiC,CAAC,IAAI,CAAC,EAAE,CAAC,CACrD;aACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjB,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,iBAAiB,EAAE,IAAI,CAAC,kBAAkB;YAC1C,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,wBAAwB,EAAE,IAAI,CAAC,yBAAyB;SACzD,CAAC,CAAC,CACJ,CAAC;IACN,CAAC;IAEQ,KAAK;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;CACF;AAnpBD,8CAmpBC"}
@@ -3,7 +3,6 @@ import type { Client } from "../Client";
3
3
  import { type File } from "../rest";
4
4
  import type { JSONApplicationCommandOptionChoice, JSONAutoModerationAction, JSONBan, JSONDefaultReaction, JSONForumTag, JSONGuild, JSONGuildApplicationCommandPermissions, JSONGuildOnboarding, JSONGuildPreview, JSONGuildScheduledEventEntityMetadata, JSONGuildScheduledEventUser, JSONGuildTemplate, JSONGuildWidget, JSONGuildWidgetSettings, JSONOnboardingPrompt, JSONOverwrite, PresenceUpdateEventFields, JSONThreadMember, JSONVoiceRegion, JSONWelcomeScreen, JSONWelcomeScreenChannel, RawGuild, RawGuildCreateEventExtraFields, JSONGuildCreateEventExtraFields, JSONTriggerMetadata } from "../types";
5
5
  import type { ActionTypes, ApplicationCommandOptionType, ApplicationCommandTypes, ChannelTypes, DefaultMessageNotificationLevel, EventTypes, ExplicitContentFilterLevel, ForumLayoutTypes, GuildFeatures, GuildMemberFlags, GuildNSFWLevel, GuildScheduledEventEntityTypes, GuildScheduledEventPrivacyLevel, GuildScheduledEventStatus, ImageWidgetStyleOptions, Locale, MFALevel, OnboardingMode, PremiumTier, SortOrderTypes, SystemChannelFlags, TriggerTypes, VerificationLevel, VideoQualityModes } from "../constants";
6
- import { Collection } from "../utils";
7
6
  /** https://discord.com/developers/docs/resources/guild */
8
7
  export declare class Guild extends Base {
9
8
  protected raw: RawGuild & Partial<RawGuildCreateEventExtraFields>;
@@ -23,8 +22,8 @@ export declare class Guild extends Base {
23
22
  verificationLevel: VerificationLevel;
24
23
  defaultMessageNotifications: DefaultMessageNotificationLevel;
25
24
  explicitContentFilter: ExplicitContentFilterLevel;
26
- roles: Collection<string, Role>;
27
- emojis: Collection<string, Emoji>;
25
+ roles: Array<Role>;
26
+ emojis: Array<Emoji>;
28
27
  features: Array<GuildFeatures>;
29
28
  mfaLevel: MFALevel;
30
29
  applicationId: string | null;
@@ -53,13 +52,13 @@ export declare class Guild extends Base {
53
52
  large?: boolean;
54
53
  unavailable?: boolean;
55
54
  memberCount?: number;
56
- voiceStates?: Collection<string, VoiceState>;
57
- members?: Collection<string, GuildMember>;
58
- channels?: Collection<string, Channel>;
59
- threads?: Collection<string, Channel>;
60
- presences?: Collection<string, PresenceUpdateEventFields>;
61
- stageInstances?: Collection<string, StageInstance>;
62
- guildScheduledEvents?: Collection<string, GuildScheduledEvent>;
55
+ voiceStates?: Array<VoiceState>;
56
+ members?: Array<GuildMember>;
57
+ channels?: Array<Channel>;
58
+ threads?: Array<Channel>;
59
+ presences?: Array<PresenceUpdateEventFields>;
60
+ stageInstances?: Array<StageInstance>;
61
+ guildScheduledEvents?: Array<GuildScheduledEvent>;
63
62
  constructor(data: RawGuild & Partial<RawGuildCreateEventExtraFields>, client: Client);
64
63
  protected patch(data: RawGuild & Partial<RawGuildCreateEventExtraFields>): void;
65
64
  /** https://discord.com/developers/docs/resources/guild#add-guild-member */
@@ -72,49 +71,6 @@ export declare class Guild extends Base {
72
71
  }): Promise<GuildMember | null>;
73
72
  /** https://discord.com/developers/docs/resources/guild#add-guild-member-role */
74
73
  addMemberRole(userId: string, roleId: string, reason?: string): void;
75
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
76
- bulkEditApplicationCommands(applicationId: string, commands: Array<{
77
- id?: string;
78
- name?: string;
79
- nameLocalizations?: Partial<Record<Locale, string>> | null;
80
- description?: string;
81
- descriptionLocalizations?: Partial<Record<Locale, string>> | null;
82
- options?: Array<{
83
- type: ApplicationCommandOptionType;
84
- name: string;
85
- nameLocalizations?: Partial<Record<Locale, string>>;
86
- description: string;
87
- descriptionLocalizations?: Partial<Record<Locale, string>>;
88
- required?: boolean;
89
- choices?: Array<JSONApplicationCommandOptionChoice>;
90
- options: Array<{
91
- type: ApplicationCommandOptionType;
92
- name: string;
93
- nameLocalizations?: Partial<Record<Locale, string>>;
94
- description: string;
95
- descriptionLocalizations?: Partial<Record<Locale, string>>;
96
- required?: boolean;
97
- choices?: Array<JSONApplicationCommandOptionChoice>;
98
- channelTypes?: Array<ChannelTypes>;
99
- minValue?: number;
100
- maxValue?: number;
101
- minLength?: number;
102
- maxLength?: number;
103
- autocomplete?: boolean;
104
- }>;
105
- channelTypes?: Array<ChannelTypes>;
106
- minValue?: number;
107
- maxValue?: number;
108
- minLength?: number;
109
- maxLength?: number;
110
- autocomplete?: boolean;
111
- }>;
112
- defaultMemberPermissions?: string | null;
113
- dmPermission?: boolean;
114
- defaultPermission?: boolean | null;
115
- type: ApplicationCommandTypes;
116
- nsfw?: boolean;
117
- }>): Promise<Array<ApplicationCommand>>;
118
74
  /** https://discord.com/developers/docs/resources/guild#begin-guild-prune */
119
75
  beginGuildPrune(options: {
120
76
  days: number;
@@ -543,6 +499,49 @@ export declare class Guild extends Base {
543
499
  query: string;
544
500
  limit?: number;
545
501
  }): Promise<Array<GuildMember>>;
502
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
503
+ setApplicationCommands(applicationId: string, commands: Array<{
504
+ id?: string;
505
+ name?: string;
506
+ nameLocalizations?: Partial<Record<Locale, string>> | null;
507
+ description?: string;
508
+ descriptionLocalizations?: Partial<Record<Locale, string>> | null;
509
+ options?: Array<{
510
+ type: ApplicationCommandOptionType;
511
+ name: string;
512
+ nameLocalizations?: Partial<Record<Locale, string>>;
513
+ description: string;
514
+ descriptionLocalizations?: Partial<Record<Locale, string>>;
515
+ required?: boolean;
516
+ choices?: Array<JSONApplicationCommandOptionChoice>;
517
+ options: Array<{
518
+ type: ApplicationCommandOptionType;
519
+ name: string;
520
+ nameLocalizations?: Partial<Record<Locale, string>>;
521
+ description: string;
522
+ descriptionLocalizations?: Partial<Record<Locale, string>>;
523
+ required?: boolean;
524
+ choices?: Array<JSONApplicationCommandOptionChoice>;
525
+ channelTypes?: Array<ChannelTypes>;
526
+ minValue?: number;
527
+ maxValue?: number;
528
+ minLength?: number;
529
+ maxLength?: number;
530
+ autocomplete?: boolean;
531
+ }>;
532
+ channelTypes?: Array<ChannelTypes>;
533
+ minValue?: number;
534
+ maxValue?: number;
535
+ minLength?: number;
536
+ maxLength?: number;
537
+ autocomplete?: boolean;
538
+ }>;
539
+ defaultMemberPermissions?: string | null;
540
+ dmPermission?: boolean;
541
+ defaultPermission?: boolean | null;
542
+ type: ApplicationCommandTypes;
543
+ nsfw?: boolean;
544
+ }>): Promise<Array<ApplicationCommand>>;
546
545
  /** https://discord.com/developers/docs/resources/guild-template#sync-guild-template */
547
546
  syncTemplate(code: string): Promise<GuildTemplate>;
548
547
  toRaw(): RawGuild & Partial<RawGuildCreateEventExtraFields>;