disgroove 1.3.0 → 1.3.1-dev.71905cd

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.
@@ -1,134 +1,19 @@
1
1
  import { Base, ApplicationCommand, Application, SKU, Entitlement, TestEntitlement } from ".";
2
- import type { JSONGuildApplicationCommandPermissions, RawApplication, JSONApplication, JSONApplicationCommandOptionChoice, JSONApplicationRoleConnectionMetadata, JSONInstallParams } from "../types";
2
+ import type { JSONGuildApplicationCommandPermissions, RawApplication, JSONApplication, JSONApplicationRoleConnectionMetadata, JSONInstallParams, JSONApplicationCommandOption } from "../types";
3
3
  import type { Client } from "../Client";
4
- import type { ApplicationCommandOptionType, ApplicationCommandTypes, ApplicationFlags, ChannelTypes, Locale } from "../constants";
4
+ import type { ApplicationCommandTypes, ApplicationFlags, Locale } from "../constants";
5
5
  export declare class ClientApplication extends Base {
6
6
  protected raw: Pick<RawApplication, "id" | "flags">;
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;
13
- name: string;
14
- nameLocalizations?: Partial<Record<Locale, string>> | null;
15
- description?: string;
16
- descriptionLocalizations?: Partial<Record<Locale, string>> | null;
17
- options?: Array<{
18
- type: ApplicationCommandOptionType;
19
- name: string;
20
- nameLocalizations?: Partial<Record<Locale, string>>;
21
- description: string;
22
- descriptionLocalizations?: Partial<Record<Locale, string>>;
23
- required?: boolean;
24
- choices?: Array<JSONApplicationCommandOptionChoice>;
25
- options?: Array<{
26
- type: ApplicationCommandOptionType;
27
- name: string;
28
- nameLocalizations?: Partial<Record<Locale, string>>;
29
- description: string;
30
- descriptionLocalizations?: Partial<Record<Locale, string>>;
31
- required?: boolean;
32
- choices?: Array<JSONApplicationCommandOptionChoice>;
33
- channelTypes?: Array<ChannelTypes>;
34
- minValue?: number;
35
- maxValue?: number;
36
- minLength?: number;
37
- maxLength?: number;
38
- autocomplete?: boolean;
39
- }>;
40
- channelTypes?: Array<ChannelTypes>;
41
- minValue?: number;
42
- maxValue?: number;
43
- minLength?: number;
44
- maxLength?: number;
45
- autocomplete?: boolean;
46
- }>;
47
- defaultMemberPermissions?: string | null;
48
- dmPermission?: boolean;
49
- defaultPermission?: boolean | null;
50
- type?: ApplicationCommandTypes;
51
- 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;
56
- name?: string;
57
- nameLocalizations?: Partial<Record<Locale, string>> | null;
58
- description?: string;
59
- descriptionLocalizations?: Partial<Record<Locale, string>> | null;
60
- options?: Array<{
61
- type: ApplicationCommandOptionType;
62
- name: string;
63
- nameLocalizations?: Partial<Record<Locale, string>>;
64
- description: string;
65
- descriptionLocalizations?: Partial<Record<Locale, string>>;
66
- required?: boolean;
67
- choices?: Array<JSONApplicationCommandOptionChoice>;
68
- options?: Array<{
69
- type: ApplicationCommandOptionType;
70
- name: string;
71
- nameLocalizations?: Partial<Record<Locale, string>>;
72
- description: string;
73
- descriptionLocalizations?: Partial<Record<Locale, string>>;
74
- required?: boolean;
75
- choices?: Array<JSONApplicationCommandOptionChoice>;
76
- channelTypes?: Array<ChannelTypes>;
77
- minValue?: number;
78
- maxValue?: number;
79
- minLength?: number;
80
- maxLength?: number;
81
- autocomplete?: boolean;
82
- }>;
83
- channelTypes?: Array<ChannelTypes>;
84
- minValue?: number;
85
- maxValue?: number;
86
- minLength?: number;
87
- maxLength?: number;
88
- autocomplete?: boolean;
89
- }>;
90
- defaultMemberPermissions?: string | null;
91
- dmPermission?: boolean;
92
- defaultPermission?: boolean | null;
93
- type: ApplicationCommandTypes;
94
- nsfw?: boolean;
95
- }>): Promise<Array<ApplicationCommand>>;
96
10
  /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
97
11
  createGlobalApplicationCommand(options: {
98
12
  name: string;
99
13
  nameLocalizations?: Partial<Record<Locale, string>> | null;
100
14
  description?: string;
101
15
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
102
- options?: Array<{
103
- type: ApplicationCommandOptionType;
104
- name: string;
105
- nameLocalizations?: Partial<Record<Locale, string>>;
106
- description: string;
107
- descriptionLocalizations?: Partial<Record<Locale, string>>;
108
- required?: boolean;
109
- choices?: Array<JSONApplicationCommandOptionChoice>;
110
- options?: Array<{
111
- type: ApplicationCommandOptionType;
112
- name: string;
113
- nameLocalizations?: Partial<Record<Locale, string>>;
114
- description: string;
115
- descriptionLocalizations?: Partial<Record<Locale, string>>;
116
- required?: boolean;
117
- choices?: Array<JSONApplicationCommandOptionChoice>;
118
- channelTypes?: Array<ChannelTypes>;
119
- minValue?: number;
120
- maxValue?: number;
121
- minLength?: number;
122
- maxLength?: number;
123
- autocomplete?: boolean;
124
- }>;
125
- channelTypes?: Array<ChannelTypes>;
126
- minValue?: number;
127
- maxValue?: number;
128
- minLength?: number;
129
- maxLength?: number;
130
- autocomplete?: boolean;
131
- }>;
16
+ options?: Array<JSONApplicationCommandOption>;
132
17
  defaultMemberPermissions?: string | null;
133
18
  dmPermission?: boolean;
134
19
  defaultPermission?: boolean | null;
@@ -141,36 +26,7 @@ export declare class ClientApplication extends Base {
141
26
  nameLocalizations?: Partial<Record<Locale, string>> | null;
142
27
  description?: string;
143
28
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
144
- options?: Array<{
145
- type: ApplicationCommandOptionType;
146
- name: string;
147
- nameLocalizations?: Partial<Record<Locale, string>>;
148
- description: string;
149
- descriptionLocalizations?: Partial<Record<Locale, string>>;
150
- required?: boolean;
151
- choices?: Array<JSONApplicationCommandOptionChoice>;
152
- options?: Array<{
153
- type: ApplicationCommandOptionType;
154
- name: string;
155
- nameLocalizations?: Partial<Record<Locale, string>>;
156
- description: string;
157
- descriptionLocalizations?: Partial<Record<Locale, string>>;
158
- required?: boolean;
159
- choices?: Array<JSONApplicationCommandOptionChoice>;
160
- channelTypes?: Array<ChannelTypes>;
161
- minValue?: number;
162
- maxValue?: number;
163
- minLength?: number;
164
- maxLength?: number;
165
- autocomplete?: boolean;
166
- }>;
167
- channelTypes?: Array<ChannelTypes>;
168
- minValue?: number;
169
- maxValue?: number;
170
- minLength?: number;
171
- maxLength?: number;
172
- autocomplete?: boolean;
173
- }>;
29
+ options?: Array<JSONApplicationCommandOption>;
174
30
  defaultMemberPermissions?: string | null;
175
31
  dmPermission?: boolean;
176
32
  defaultPermission?: boolean | null;
@@ -211,36 +67,7 @@ export declare class ClientApplication extends Base {
211
67
  nameLocalizations?: Partial<Record<Locale, string>> | null;
212
68
  description?: string;
213
69
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
214
- options?: Array<{
215
- type: ApplicationCommandOptionType;
216
- name: string;
217
- nameLocalizations?: Partial<Record<Locale, string>>;
218
- description: string;
219
- descriptionLocalizations?: Partial<Record<Locale, string>>;
220
- required?: boolean;
221
- choices?: Array<JSONApplicationCommandOptionChoice>;
222
- options?: Array<{
223
- type: ApplicationCommandOptionType;
224
- name: string;
225
- nameLocalizations?: Partial<Record<Locale, string>>;
226
- description: string;
227
- descriptionLocalizations?: Partial<Record<Locale, string>>;
228
- required?: boolean;
229
- choices?: Array<JSONApplicationCommandOptionChoice>;
230
- channelTypes?: Array<ChannelTypes>;
231
- minValue?: number;
232
- maxValue?: number;
233
- minLength?: number;
234
- maxLength?: number;
235
- autocomplete?: boolean;
236
- }>;
237
- channelTypes?: Array<ChannelTypes>;
238
- minValue?: number;
239
- maxValue?: number;
240
- minLength?: number;
241
- maxLength?: number;
242
- autocomplete?: boolean;
243
- }>;
70
+ options?: Array<JSONApplicationCommandOption>;
244
71
  defaultMemberPermissions?: string | null;
245
72
  defaultPermission?: boolean | null;
246
73
  dmPermission?: boolean;
@@ -252,36 +79,7 @@ export declare class ClientApplication extends Base {
252
79
  nameLocalizations?: Partial<Record<Locale, string>> | null;
253
80
  description?: string;
254
81
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
255
- options?: Array<{
256
- type: ApplicationCommandOptionType;
257
- name: string;
258
- nameLocalizations?: Partial<Record<Locale, string>>;
259
- description: string;
260
- descriptionLocalizations?: Partial<Record<Locale, string>>;
261
- required?: boolean;
262
- choices?: Array<JSONApplicationCommandOptionChoice>;
263
- options?: Array<{
264
- type: ApplicationCommandOptionType;
265
- name: string;
266
- nameLocalizations?: Partial<Record<Locale, string>>;
267
- description: string;
268
- descriptionLocalizations?: Partial<Record<Locale, string>>;
269
- required?: boolean;
270
- choices?: Array<JSONApplicationCommandOptionChoice>;
271
- channelTypes?: Array<ChannelTypes>;
272
- minValue?: number;
273
- maxValue?: number;
274
- minLength?: number;
275
- maxLength?: number;
276
- autocomplete?: boolean;
277
- }>;
278
- channelTypes?: Array<ChannelTypes>;
279
- minValue?: number;
280
- maxValue?: number;
281
- minLength?: number;
282
- maxLength?: number;
283
- autocomplete?: boolean;
284
- }>;
82
+ options?: Array<JSONApplicationCommandOption>;
285
83
  defaultMemberPermissions?: string | null;
286
84
  defaultPermission?: boolean | null;
287
85
  dmPermission?: boolean;
@@ -317,6 +115,34 @@ export declare class ClientApplication extends Base {
317
115
  getApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
318
116
  /** https://discord.com/developers/docs/monetization/skus#list-skus */
319
117
  getSKUs(): Promise<Array<SKU>>;
118
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
119
+ setGlobalApplicationCommands(commands: Array<{
120
+ id?: string;
121
+ name: string;
122
+ nameLocalizations?: Partial<Record<Locale, string>> | null;
123
+ description?: string;
124
+ descriptionLocalizations?: Partial<Record<Locale, string>> | null;
125
+ options?: Array<JSONApplicationCommandOption>;
126
+ defaultMemberPermissions?: string | null;
127
+ dmPermission?: boolean;
128
+ defaultPermission?: boolean | null;
129
+ type?: ApplicationCommandTypes;
130
+ nsfw?: boolean;
131
+ }>): Promise<Array<ApplicationCommand>>;
132
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
133
+ setGuildApplicationCommands(guildId: string, commands: Array<{
134
+ id?: string;
135
+ name?: string;
136
+ nameLocalizations?: Partial<Record<Locale, string>> | null;
137
+ description?: string;
138
+ descriptionLocalizations?: Partial<Record<Locale, string>> | null;
139
+ options?: Array<JSONApplicationCommandOption>;
140
+ defaultMemberPermissions?: string | null;
141
+ dmPermission?: boolean;
142
+ defaultPermission?: boolean | null;
143
+ type: ApplicationCommandTypes;
144
+ nsfw?: boolean;
145
+ }>): Promise<Array<ApplicationCommand>>;
320
146
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
321
147
  updateApplicationRoleConnectionMetadataRecords(): Promise<Array<JSONApplicationRoleConnectionMetadata>>;
322
148
  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,CA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AI,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;AAreD,8CAqeC"}
@@ -1,8 +1,8 @@
1
1
  import { ApplicationCommand, AuditLog, AutoModerationRule, Base, Channel, Emoji, GuildMember, GuildScheduledEvent, GuildTemplate, Integration, Invite, Role, StageInstance, Sticker, VoiceState, Webhook } from ".";
2
2
  import type { Client } from "../Client";
3
3
  import { type File } from "../rest";
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
- 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";
4
+ import type { JSONAutoModerationAction, JSONBan, JSONDefaultReaction, JSONForumTag, JSONGuild, JSONGuildApplicationCommandPermissions, JSONGuildOnboarding, JSONGuildPreview, JSONGuildScheduledEventEntityMetadata, JSONGuildScheduledEventUser, JSONGuildTemplate, JSONGuildWidget, JSONGuildWidgetSettings, JSONOnboardingPrompt, JSONOverwrite, PresenceUpdateEventFields, JSONThreadMember, JSONVoiceRegion, JSONWelcomeScreen, JSONWelcomeScreenChannel, RawGuild, RawGuildCreateEventExtraFields, JSONGuildCreateEventExtraFields, JSONTriggerMetadata, JSONApplicationCommandOption } from "../types";
5
+ import type { ActionTypes, 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
6
  /** https://discord.com/developers/docs/resources/guild */
7
7
  export declare class Guild extends Base {
8
8
  protected raw: RawGuild & Partial<RawGuildCreateEventExtraFields>;
@@ -71,49 +71,6 @@ export declare class Guild extends Base {
71
71
  }): Promise<GuildMember | null>;
72
72
  /** https://discord.com/developers/docs/resources/guild#add-guild-member-role */
73
73
  addMemberRole(userId: string, roleId: string, reason?: string): void;
74
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
75
- bulkEditApplicationCommands(applicationId: string, commands: Array<{
76
- id?: string;
77
- name?: string;
78
- nameLocalizations?: Partial<Record<Locale, string>> | null;
79
- description?: string;
80
- descriptionLocalizations?: Partial<Record<Locale, string>> | null;
81
- options?: Array<{
82
- type: ApplicationCommandOptionType;
83
- name: string;
84
- nameLocalizations?: Partial<Record<Locale, string>>;
85
- description: string;
86
- descriptionLocalizations?: Partial<Record<Locale, string>>;
87
- required?: boolean;
88
- choices?: Array<JSONApplicationCommandOptionChoice>;
89
- options: Array<{
90
- type: ApplicationCommandOptionType;
91
- name: string;
92
- nameLocalizations?: Partial<Record<Locale, string>>;
93
- description: string;
94
- descriptionLocalizations?: Partial<Record<Locale, string>>;
95
- required?: boolean;
96
- choices?: Array<JSONApplicationCommandOptionChoice>;
97
- channelTypes?: Array<ChannelTypes>;
98
- minValue?: number;
99
- maxValue?: number;
100
- minLength?: number;
101
- maxLength?: number;
102
- autocomplete?: boolean;
103
- }>;
104
- channelTypes?: Array<ChannelTypes>;
105
- minValue?: number;
106
- maxValue?: number;
107
- minLength?: number;
108
- maxLength?: number;
109
- autocomplete?: boolean;
110
- }>;
111
- defaultMemberPermissions?: string | null;
112
- dmPermission?: boolean;
113
- defaultPermission?: boolean | null;
114
- type: ApplicationCommandTypes;
115
- nsfw?: boolean;
116
- }>): Promise<Array<ApplicationCommand>>;
117
74
  /** https://discord.com/developers/docs/resources/guild#begin-guild-prune */
118
75
  beginGuildPrune(options: {
119
76
  days: number;
@@ -123,40 +80,11 @@ export declare class Guild extends Base {
123
80
  }, reason?: string): Promise<number>;
124
81
  /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
125
82
  createApplicationCommand(applicationId: string, options: {
126
- name?: string;
83
+ name: string;
127
84
  nameLocalizations?: Partial<Record<Locale, string>> | null;
128
85
  description?: string;
129
86
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
130
- options?: Array<{
131
- type: ApplicationCommandOptionType;
132
- name: string;
133
- nameLocalizations?: Partial<Record<Locale, string>>;
134
- description: string;
135
- descriptionLocalizations?: Partial<Record<Locale, string>>;
136
- required?: boolean;
137
- choices?: Array<JSONApplicationCommandOptionChoice>;
138
- options: Array<{
139
- type: ApplicationCommandOptionType;
140
- name: string;
141
- nameLocalizations?: Partial<Record<Locale, string>>;
142
- description: string;
143
- descriptionLocalizations?: Partial<Record<Locale, string>>;
144
- required?: boolean;
145
- choices?: Array<JSONApplicationCommandOptionChoice>;
146
- channelTypes?: Array<ChannelTypes>;
147
- minValue?: number;
148
- maxValue?: number;
149
- minLength?: number;
150
- maxLength?: number;
151
- autocomplete?: boolean;
152
- }>;
153
- channelTypes?: Array<ChannelTypes>;
154
- minValue?: number;
155
- maxValue?: number;
156
- minLength?: number;
157
- maxLength?: number;
158
- autocomplete?: boolean;
159
- }>;
87
+ options?: Array<JSONApplicationCommandOption>;
160
88
  defaultMemberPermissions?: string | null;
161
89
  dmPermission?: boolean;
162
90
  defaultPermission?: boolean | null;
@@ -288,36 +216,7 @@ export declare class Guild extends Base {
288
216
  nameLocalizations?: Partial<Record<Locale, string>> | null;
289
217
  description?: string;
290
218
  descriptionLocalizations?: Partial<Record<Locale, string>> | null;
291
- options?: Array<{
292
- type: ApplicationCommandOptionType;
293
- name: string;
294
- nameLocalizations?: Partial<Record<Locale, string>>;
295
- description: string;
296
- descriptionLocalizations?: Partial<Record<Locale, string>>;
297
- required?: boolean;
298
- choices?: Array<JSONApplicationCommandOptionChoice>;
299
- options: Array<{
300
- type: ApplicationCommandOptionType;
301
- name: string;
302
- nameLocalizations?: Partial<Record<Locale, string>>;
303
- description: string;
304
- descriptionLocalizations?: Partial<Record<Locale, string>>;
305
- required?: boolean;
306
- choices?: Array<JSONApplicationCommandOptionChoice>;
307
- channelTypes?: Array<ChannelTypes>;
308
- minValue?: number;
309
- maxValue?: number;
310
- minLength?: number;
311
- maxLength?: number;
312
- autocomplete?: boolean;
313
- }>;
314
- channelTypes?: Array<ChannelTypes>;
315
- minValue?: number;
316
- maxValue?: number;
317
- minLength?: number;
318
- maxLength?: number;
319
- autocomplete?: boolean;
320
- }>;
219
+ options?: Array<JSONApplicationCommandOption>;
321
220
  defaultMemberPermissions?: string | null;
322
221
  defaultPermission?: boolean | null;
323
222
  dmPermission?: boolean;
@@ -542,6 +441,20 @@ export declare class Guild extends Base {
542
441
  query: string;
543
442
  limit?: number;
544
443
  }): Promise<Array<GuildMember>>;
444
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
445
+ setApplicationCommands(applicationId: string, commands: Array<{
446
+ id?: string;
447
+ name: string;
448
+ nameLocalizations?: Partial<Record<Locale, string>> | null;
449
+ description?: string;
450
+ descriptionLocalizations?: Partial<Record<Locale, string>> | null;
451
+ options?: Array<JSONApplicationCommandOption>;
452
+ defaultMemberPermissions?: string | null;
453
+ dmPermission?: boolean;
454
+ defaultPermission?: boolean | null;
455
+ type: ApplicationCommandTypes;
456
+ nsfw?: boolean;
457
+ }>): Promise<Array<ApplicationCommand>>;
545
458
  /** https://discord.com/developers/docs/resources/guild-template#sync-guild-template */
546
459
  syncTemplate(code: string): Promise<GuildTemplate>;
547
460
  toRaw(): RawGuild & Partial<RawGuildCreateEventExtraFields>;
@@ -148,33 +148,7 @@ class Guild extends _1.Base {
148
148
  if (data.threads !== undefined)
149
149
  this.threads = data.threads.map((thread) => new _1.Channel(thread, this.client));
150
150
  if (data.presences !== undefined)
151
- this.presences = data.presences.map((presence) => ({
152
- user: new _1.User(presence.user, this.client),
153
- guildId: presence.guild_id,
154
- status: presence.status,
155
- activities: presence.activities.map((activity) => ({
156
- name: activity.name,
157
- type: activity.type,
158
- url: activity.url,
159
- createdAt: activity.created_at,
160
- timestamps: activity.timestamps,
161
- applicationId: activity.application_id,
162
- details: activity.details,
163
- state: activity.state,
164
- party: activity.party,
165
- assets: {
166
- largeImage: activity.assets?.large_image,
167
- largeText: activity.assets?.large_text,
168
- smallImage: activity.assets?.small_image,
169
- smallText: activity.assets?.small_text,
170
- },
171
- secrets: activity.secrets,
172
- instance: activity.instance,
173
- flags: activity.flags,
174
- buttons: activity.buttons,
175
- })),
176
- clientStatus: presence.client_status,
177
- }));
151
+ this.presences = data.presences.map((presence) => this.client.util.presenceToREST(presence, this.client));
178
152
  if (data.stage_instances !== undefined)
179
153
  this.stageInstances = data.stage_instances.map((stageIntance) => new _1.StageInstance(stageIntance, this.client));
180
154
  if (data.guild_scheduled_events !== undefined)
@@ -206,14 +180,6 @@ class Guild extends _1.Base {
206
180
  reason,
207
181
  });
208
182
  }
209
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
210
- async bulkEditApplicationCommands(applicationId, commands) {
211
- return this.client.rest
212
- .put(rest_1.Endpoints.applicationGuildCommands(applicationId, this.id), {
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
183
  /** https://discord.com/developers/docs/resources/guild#begin-guild-prune */
218
184
  async beginGuildPrune(options, reason) {
219
185
  return this.client.rest.post(rest_1.Endpoints.guildPrune(this.id), {
@@ -1051,6 +1017,14 @@ class Guild extends _1.Base {
1051
1017
  })
1052
1018
  .then((response) => response.map((data) => new _1.GuildMember(data, this.client)));
1053
1019
  }
1020
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
1021
+ async setApplicationCommands(applicationId, commands) {
1022
+ return this.client.rest
1023
+ .put(rest_1.Endpoints.applicationGuildCommands(applicationId, this.id), {
1024
+ json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
1025
+ })
1026
+ .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
1027
+ }
1054
1028
  /** https://discord.com/developers/docs/resources/guild-template#sync-guild-template */
1055
1029
  async syncTemplate(code) {
1056
1030
  return new _1.GuildTemplate(await this.client.rest.put(rest_1.Endpoints.guildTemplate(this.id, code)), this.client);