disgroove 2.2.1-dev.64c7abc → 2.2.1-dev.efad41d

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 (35) hide show
  1. package/dist/lib/Client.d.ts +224 -227
  2. package/dist/lib/Client.js +402 -401
  3. package/dist/lib/constants.d.ts +5 -4
  4. package/dist/lib/constants.js +5 -4
  5. package/dist/lib/gateway/Shard.d.ts +14 -9
  6. package/dist/lib/gateway/Shard.js +157 -108
  7. package/dist/lib/rest/CDN.d.ts +20 -20
  8. package/dist/lib/rest/CDN.js +20 -20
  9. package/dist/lib/rest/Endpoints.d.ts +81 -81
  10. package/dist/lib/rest/Endpoints.js +91 -91
  11. package/dist/lib/types/application-command.d.ts +4 -4
  12. package/dist/lib/types/application.d.ts +2 -2
  13. package/dist/lib/types/audit-log.d.ts +5 -5
  14. package/dist/lib/types/auto-moderation.d.ts +3 -3
  15. package/dist/lib/types/channel.d.ts +23 -21
  16. package/dist/lib/types/entitlements.d.ts +6 -6
  17. package/dist/lib/types/gateway-events.d.ts +151 -67
  18. package/dist/lib/types/guild-scheduled-event.d.ts +5 -5
  19. package/dist/lib/types/guild-template.d.ts +2 -2
  20. package/dist/lib/types/guild.d.ts +17 -17
  21. package/dist/lib/types/interaction.d.ts +8 -8
  22. package/dist/lib/types/message-components.d.ts +4 -4
  23. package/dist/lib/types/poll.d.ts +1 -1
  24. package/dist/lib/types/role.d.ts +3 -3
  25. package/dist/lib/types/sku.d.ts +2 -2
  26. package/dist/lib/types/stage-instance.d.ts +3 -3
  27. package/dist/lib/types/sticker.d.ts +5 -5
  28. package/dist/lib/types/team.d.ts +2 -2
  29. package/dist/lib/types/user.d.ts +1 -1
  30. package/dist/lib/types/voice.d.ts +4 -4
  31. package/dist/lib/types/webhook.d.ts +3 -3
  32. package/dist/lib/utils/Util.d.ts +2 -2
  33. package/dist/lib/utils/Util.js +195 -193
  34. package/dist/package.json +1 -1
  35. package/package.json +1 -1
@@ -36,10 +36,11 @@ class Client extends node_events_1.default {
36
36
  this.rest = new rest_1.RequestManager(token, this.auth);
37
37
  this.util = new utils_1.Util();
38
38
  this.guildShardMap = {};
39
+ this.guilds = new Map();
39
40
  }
40
41
  /** https://discord.com/developers/docs/resources/channel#group-dm-add-recipient */
41
- addGroupRecipient(channelId, userId, options) {
42
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelRecipient(channelId, userId), {
42
+ addGroupRecipient(channelID, userID, options) {
43
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelRecipient(channelID, userID), {
43
44
  json: {
44
45
  access_token: options.accessToken,
45
46
  nick: options.nick,
@@ -47,8 +48,8 @@ class Client extends node_events_1.default {
47
48
  });
48
49
  }
49
50
  /** https://discord.com/developers/docs/resources/guild#add-guild-member */
50
- async addGuildMember(guildId, userId, options) {
51
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMember(guildId, userId), {
51
+ async addGuildMember(guildID, userID, options) {
52
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMember(guildID, userID), {
52
53
  json: {
53
54
  access_token: options.accessToken,
54
55
  nick: options.nick,
@@ -60,18 +61,18 @@ class Client extends node_events_1.default {
60
61
  return response !== null ? this.util.guildMemberFromRaw(response) : null;
61
62
  }
62
63
  /** https://discord.com/developers/docs/resources/guild#add-guild-member-role */
63
- addGuildMemberRole(guildId, userId, roleId, reason) {
64
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMemberRole(guildId, userId, roleId), {
64
+ addGuildMemberRole(guildID, userID, roleID, reason) {
65
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMemberRole(guildID, userID, roleID), {
65
66
  reason,
66
67
  });
67
68
  }
68
69
  /** https://discord.com/developers/docs/resources/channel#add-thread-member */
69
- addThreadMember(channelId, userId) {
70
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelId, userId));
70
+ addThreadMember(channelID, userID) {
71
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelID, userID));
71
72
  }
72
73
  /** https://discord.com/developers/docs/resources/guild#begin-guild-prune */
73
- beginGuildPrune(guildId, options, reason) {
74
- return this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildPrune(guildId), {
74
+ beginGuildPrune(guildID, options, reason) {
75
+ return this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildPrune(guildID), {
75
76
  json: {
76
77
  days: options.days,
77
78
  compute_prune_count: options.computePruneCount,
@@ -82,10 +83,10 @@ class Client extends node_events_1.default {
82
83
  });
83
84
  }
84
85
  /** https://discord.com/developers/docs/resources/guild#bulk-guild-ban */
85
- async bulkGuildBan(guildId, options, reason) {
86
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.bulkGuildBan(guildId), {
86
+ async bulkGuildBan(guildID, options, reason) {
87
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.bulkGuildBan(guildID), {
87
88
  json: {
88
- user_ids: options.userIds,
89
+ user_ids: options.userIDs,
89
90
  delete_message_seconds: options.deleteMessageSeconds,
90
91
  },
91
92
  reason,
@@ -96,8 +97,8 @@ class Client extends node_events_1.default {
96
97
  };
97
98
  }
98
99
  /** https://discord.com/developers/docs/resources/channel#bulk-delete-messages */
99
- bulkDeleteMessages(channelId, options, reason) {
100
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelBulkDelete(channelId), {
100
+ bulkDeleteMessages(channelID, options, reason) {
101
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelBulkDelete(channelID), {
101
102
  json: {
102
103
  messages: options?.messages,
103
104
  },
@@ -105,15 +106,15 @@ class Client extends node_events_1.default {
105
106
  });
106
107
  }
107
108
  /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
108
- async bulkEditGlobalApplicationCommands(applicationId, commands) {
109
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommands(applicationId), {
109
+ async bulkEditGlobalApplicationCommands(applicationID, commands) {
110
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommands(applicationID), {
110
111
  json: commands.map((command) => this.util.partialApplicationCommandToRaw(command)),
111
112
  });
112
113
  return response.map((c) => this.util.applicationCommandFromRaw(c));
113
114
  }
114
115
  /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
115
- async bulkEditGuildApplicationCommands(applicationId, guildId, commands) {
116
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationGuildCommands(applicationId, guildId), {
116
+ async bulkEditGuildApplicationCommands(applicationID, guildID, commands) {
117
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationGuildCommands(applicationID, guildID), {
117
118
  json: commands.map((command) => this.util.partialApplicationCommandToRaw(command)),
118
119
  });
119
120
  return response.map((c) => this.util.applicationCommandFromRaw(c));
@@ -129,12 +130,12 @@ class Client extends node_events_1.default {
129
130
  this.shards.connect();
130
131
  }
131
132
  /** https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement */
132
- consumeEntitlement(applicationId, entitlementId) {
133
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlementConsume(applicationId, entitlementId));
133
+ consumeEntitlement(applicationID, entitlementID) {
134
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlementConsume(applicationID, entitlementID));
134
135
  }
135
136
  /** https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule */
136
- async createAutoModerationRule(guildId, options, reason) {
137
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildAutoModerationRules(guildId), {
137
+ async createAutoModerationRule(guildID, options, reason) {
138
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildAutoModerationRules(guildID), {
138
139
  json: {
139
140
  name: options.name,
140
141
  event_type: options.eventType,
@@ -143,7 +144,7 @@ class Client extends node_events_1.default {
143
144
  actions: options.actions.map((action) => ({
144
145
  type: action.type,
145
146
  metadata: {
146
- channel_id: action.metadata.channelId,
147
+ channel_id: action.metadata.channelID,
147
148
  duration_seconds: action.metadata.durationSeconds,
148
149
  custom_message: action.metadata.customMessage,
149
150
  },
@@ -157,8 +158,8 @@ class Client extends node_events_1.default {
157
158
  return this.util.autoModerationRuleFromRaw(response);
158
159
  }
159
160
  /** https://discord.com/developers/docs/resources/guild#create-guild-channel */
160
- async createChannel(guildId, options, reason) {
161
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildChannels(guildId), {
161
+ async createChannel(guildID, options, reason) {
162
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildChannels(guildID), {
162
163
  json: {
163
164
  name: options.name,
164
165
  type: options.type,
@@ -168,7 +169,7 @@ class Client extends node_events_1.default {
168
169
  rate_limit_per_user: options.rateLimitPerUser,
169
170
  position: options.position,
170
171
  permission_overwrites: options.permissionOverwrites,
171
- parent_id: options.parentId,
172
+ parent_id: options.parentID,
172
173
  nsfw: options.nsfw,
173
174
  rtc_region: options.rtcRegion,
174
175
  video_quality_mode: options.videoQualityMode,
@@ -176,7 +177,7 @@ class Client extends node_events_1.default {
176
177
  default_reaction_emoji: options.defaultReactionEmoji !== undefined
177
178
  ? options.defaultReactionEmoji !== null
178
179
  ? {
179
- emoji_id: options.defaultReactionEmoji.emojiId,
180
+ emoji_id: options.defaultReactionEmoji.emojiID,
180
181
  emoji_name: options.defaultReactionEmoji.emojiName,
181
182
  }
182
183
  : null
@@ -191,24 +192,24 @@ class Client extends node_events_1.default {
191
192
  return this.util.channelFromRaw(response);
192
193
  }
193
194
  /** https://discord.com/developers/docs/resources/channel#create-channel-invite */
194
- async createChannelInvite(channelId, options, reason) {
195
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelInvites(channelId), {
195
+ async createChannelInvite(channelID, options, reason) {
196
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelInvites(channelID), {
196
197
  json: {
197
198
  max_age: options.maxAge,
198
199
  max_uses: options.maxUses,
199
200
  temporary: options.temporary,
200
201
  unique: options.unique,
201
202
  target_type: options.targetType,
202
- target_user_id: options.targetUserId,
203
- target_application_id: options.targetApplicationId,
203
+ target_user_id: options.targetUserID,
204
+ target_application_id: options.targetApplicationID,
204
205
  },
205
206
  reason,
206
207
  });
207
208
  return this.util.inviteFromRaw(response);
208
209
  }
209
210
  /** https://discord.com/developers/docs/resources/webhook#create-webhook */
210
- async createChannelWebhook(channelId, options, reason) {
211
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelWebhooks(channelId), {
211
+ async createChannelWebhook(channelID, options, reason) {
212
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelWebhooks(channelID), {
212
213
  json: {
213
214
  name: options.name,
214
215
  avatar: options.avatar,
@@ -221,14 +222,14 @@ class Client extends node_events_1.default {
221
222
  async createDM(options) {
222
223
  const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.userChannels(), {
223
224
  json: {
224
- recipient_id: options.recipientId,
225
+ recipient_id: options.recipientID,
225
226
  },
226
227
  });
227
228
  return this.util.channelFromRaw(response);
228
229
  }
229
230
  /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
230
- async createGlobalApplicationCommand(applicationId, options) {
231
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationCommands(applicationId), {
231
+ async createGlobalApplicationCommand(applicationID, options) {
232
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationCommands(applicationID), {
232
233
  json: this.util.partialApplicationCommandToRaw(options),
233
234
  });
234
235
  return this.util.applicationCommandFromRaw(response);
@@ -262,24 +263,24 @@ class Client extends node_events_1.default {
262
263
  permissions: role.permissions,
263
264
  mentionable: role.mentionable,
264
265
  })),
265
- afk_channel_id: options.afkChannelId,
266
+ afk_channel_id: options.afkChannelID,
266
267
  afk_timeout: options.afkTimeout,
267
- system_channel_id: options.systemChannelId,
268
+ system_channel_id: options.systemChannelID,
268
269
  system_channel_flags: options.systemChannelFlags,
269
270
  },
270
271
  });
271
272
  return this.util.guildFromRaw(response);
272
273
  }
273
274
  /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
274
- async createGuildApplicationCommand(applicationId, guildId, options) {
275
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationGuildCommands(applicationId, guildId), {
275
+ async createGuildApplicationCommand(applicationID, guildID, options) {
276
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationGuildCommands(applicationID, guildID), {
276
277
  json: this.util.partialApplicationCommandToRaw(options),
277
278
  });
278
279
  return this.util.applicationCommandFromRaw(response);
279
280
  }
280
281
  /** https://discord.com/developers/docs/resources/guild#create-guild-ban */
281
- createGuildBan(guildId, userId, options, reason) {
282
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildBan(guildId, userId), {
282
+ createGuildBan(guildID, userID, options, reason) {
283
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildBan(guildID, userID), {
283
284
  json: {
284
285
  delete_message_days: options?.deleteMessageDays,
285
286
  delete_message_seconds: options?.deleteMessageSeconds,
@@ -288,8 +289,8 @@ class Client extends node_events_1.default {
288
289
  });
289
290
  }
290
291
  /** https://discord.com/developers/docs/resources/emoji#create-guild-emoji */
291
- async createGuildEmoji(guildId, options, reason) {
292
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildEmojis(guildId), {
292
+ async createGuildEmoji(guildID, options, reason) {
293
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildEmojis(guildID), {
293
294
  json: {
294
295
  name: options.name,
295
296
  image: options.image,
@@ -310,8 +311,8 @@ class Client extends node_events_1.default {
310
311
  return this.util.guildFromRaw(response);
311
312
  }
312
313
  /** https://discord.com/developers/docs/resources/guild#create-guild-role */
313
- async createGuildRole(guildId, options, reason) {
314
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildRoles(guildId), {
314
+ async createGuildRole(guildID, options, reason) {
315
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildRoles(guildID), {
315
316
  json: {
316
317
  name: options.name,
317
318
  permissions: options.permissions,
@@ -326,10 +327,10 @@ class Client extends node_events_1.default {
326
327
  return this.util.roleFromRaw(response);
327
328
  }
328
329
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event */
329
- async createGuildScheduledEvent(guildId, options, reason) {
330
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildScheduledEvents(guildId), {
330
+ async createGuildScheduledEvent(guildID, options, reason) {
331
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildScheduledEvents(guildID), {
331
332
  json: {
332
- channel_id: options.channelId,
333
+ channel_id: options.channelID,
333
334
  entity_metadata: options.entityMetadata,
334
335
  name: options.name,
335
336
  privacy_level: options.privacyLevel,
@@ -344,21 +345,21 @@ class Client extends node_events_1.default {
344
345
  return this.util.guildScheduledEventFromRaw(response);
345
346
  }
346
347
  /** https://discord.com/developers/docs/resources/sticker#create-guild-sticker */
347
- async createGuildSticker(guildId, options, reason) {
348
+ async createGuildSticker(guildID, options, reason) {
348
349
  const formData = new FormData();
349
350
  formData.set("name", options.name);
350
351
  formData.set("description", options.description);
351
352
  formData.set("tags", options.tags);
352
353
  formData.set("file", new Blob([options.file.contents]), options.file.name);
353
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildStickers(guildId), {
354
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildStickers(guildID), {
354
355
  form: formData,
355
356
  reason,
356
357
  });
357
358
  return this.util.stickerFromRaw(response);
358
359
  }
359
360
  /** https://discord.com/developers/docs/resources/guild-template#create-guild-template */
360
- async createGuildTemplate(guildId, options) {
361
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildTemplates(guildId), {
361
+ async createGuildTemplate(guildID, options) {
362
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildTemplates(guildID), {
362
363
  json: {
363
364
  name: options.name,
364
365
  description: options.description,
@@ -367,8 +368,8 @@ class Client extends node_events_1.default {
367
368
  return this.util.guildTemplateFromRaw(response);
368
369
  }
369
370
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message */
370
- async createInteractionFollowupMessage(applicationId, interactionToken, options) {
371
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(applicationId, interactionToken), {
371
+ async createInteractionFollowupMessage(applicationID, interactionToken, options) {
372
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(applicationID, interactionToken), {
372
373
  json: {
373
374
  content: options.content,
374
375
  tts: options.tts,
@@ -397,7 +398,7 @@ class Client extends node_events_1.default {
397
398
  ? {
398
399
  question: options.poll.question,
399
400
  answers: options.poll.answers.map((answer) => ({
400
- answer_id: answer.answerId,
401
+ answer_id: answer.answerID,
401
402
  poll_media: answer.pollMedia,
402
403
  })),
403
404
  duration: options.poll.duration,
@@ -411,12 +412,12 @@ class Client extends node_events_1.default {
411
412
  return this.util.messageFromRaw(response);
412
413
  }
413
414
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response */
414
- createInteractionResponse(interactionId, interactionToken, options) {
415
+ createInteractionResponse(interactionID, interactionToken, options) {
415
416
  switch (options.type) {
416
417
  case constants_1.InteractionCallbackType.ChannelMessageWithSource:
417
418
  case constants_1.InteractionCallbackType.UpdateMessage:
418
419
  {
419
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionId, interactionToken), {
420
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionID, interactionToken), {
420
421
  json: {
421
422
  type: options.type,
422
423
  data: {
@@ -441,7 +442,7 @@ class Client extends node_events_1.default {
441
442
  ? {
442
443
  question: options.data.poll.question,
443
444
  answers: options.data.poll.answers.map((answer) => ({
444
- answer_id: answer.answerId,
445
+ answer_id: answer.answerID,
445
446
  poll_media: answer.pollMedia,
446
447
  })),
447
448
  duration: options.data.poll.duration,
@@ -458,7 +459,7 @@ class Client extends node_events_1.default {
458
459
  case constants_1.InteractionCallbackType.DeferredChannelMessageWithSource:
459
460
  case constants_1.InteractionCallbackType.DeferredUpdateMessage:
460
461
  {
461
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionId, interactionToken), {
462
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionID, interactionToken), {
462
463
  json: {
463
464
  type: options.type,
464
465
  data: {
@@ -470,7 +471,7 @@ class Client extends node_events_1.default {
470
471
  break;
471
472
  case constants_1.InteractionCallbackType.ApplicationCommandAutocompleteResult:
472
473
  {
473
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionId, interactionToken), {
474
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionID, interactionToken), {
474
475
  json: {
475
476
  type: options.type,
476
477
  data: {
@@ -486,11 +487,11 @@ class Client extends node_events_1.default {
486
487
  break;
487
488
  case constants_1.InteractionCallbackType.Modal:
488
489
  {
489
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionId, interactionToken), {
490
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionID, interactionToken), {
490
491
  json: {
491
492
  type: options.type,
492
493
  data: {
493
- custom_id: options.data?.customId,
494
+ custom_id: options.data?.customID,
494
495
  components: options.data?.components !== undefined
495
496
  ? this.util.messageComponentsToRaw(options.data.components)
496
497
  : undefined,
@@ -502,7 +503,7 @@ class Client extends node_events_1.default {
502
503
  break;
503
504
  case constants_1.InteractionCallbackType.PremiumRequired:
504
505
  {
505
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionId, interactionToken), {
506
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionID, interactionToken), {
506
507
  json: {
507
508
  type: options.type,
508
509
  data: {},
@@ -513,8 +514,8 @@ class Client extends node_events_1.default {
513
514
  }
514
515
  }
515
516
  /** https://discord.com/developers/docs/resources/channel#create-message */
516
- async createMessage(channelId, options) {
517
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessages(channelId), {
517
+ async createMessage(channelID, options) {
518
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessages(channelID), {
518
519
  json: {
519
520
  content: options.content,
520
521
  nonce: options.nonce,
@@ -532,7 +533,7 @@ class Client extends node_events_1.default {
532
533
  components: options.components !== undefined
533
534
  ? this.util.messageComponentsToRaw(options.components)
534
535
  : undefined,
535
- stickers_ids: options.stickersIds,
536
+ stickers_ids: options.stickersIDs,
536
537
  attachments: options.attachments?.map((attachment) => this.util.attachmentToRaw(attachment)),
537
538
  flags: options.flags,
538
539
  enforce_nonce: options.enforceNonce,
@@ -540,7 +541,7 @@ class Client extends node_events_1.default {
540
541
  ? {
541
542
  question: options.poll.question,
542
543
  answers: options.poll.answers.map((answer) => ({
543
- answer_id: answer.answerId,
544
+ answer_id: answer.answerID,
544
545
  poll_media: answer.pollMedia,
545
546
  })),
546
547
  duration: options.poll.duration,
@@ -554,37 +555,37 @@ class Client extends node_events_1.default {
554
555
  return this.util.messageFromRaw(response);
555
556
  }
556
557
  /** https://discord.com/developers/docs/resources/channel#create-reaction */
557
- createMessageReaction(channelId, messageId, emoji) {
558
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelMessageReaction(channelId, messageId, emoji));
558
+ createMessageReaction(channelID, messageID, emoji) {
559
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelMessageReaction(channelID, messageID, emoji));
559
560
  }
560
561
  /** https://discord.com/developers/docs/resources/stage-instance#create-stage-instance */
561
562
  async createStageInstance(options, reason) {
562
563
  const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.stageInstances(), {
563
564
  json: {
564
- channel_id: options.channelId,
565
+ channel_id: options.channelID,
565
566
  topic: options.topic,
566
567
  privacy_level: options.privacyLevel,
567
568
  send_start_notifications: options.sendStartNotifications,
568
- guild_scheduled_event_id: options.guildScheduledEventId,
569
+ guild_scheduled_event_id: options.guildScheduledEventID,
569
570
  },
570
571
  reason,
571
572
  });
572
573
  return this.util.stageInstanceFromRaw(response);
573
574
  }
574
575
  /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
575
- async createTestEntitlement(applicationId, options) {
576
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlements(applicationId), {
576
+ async createTestEntitlement(applicationID, options) {
577
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlements(applicationID), {
577
578
  json: {
578
- sku_id: options.skuId,
579
- owner_id: options.ownerId,
579
+ sku_id: options.skuID,
580
+ owner_id: options.ownerID,
580
581
  owner_type: options.ownerType,
581
582
  },
582
583
  });
583
584
  return this.util.testEntitlementFromRaw(response);
584
585
  }
585
586
  /** https://discord.com/developers/docs/resources/channel#start-thread-in-forum-or-media-channel */
586
- async createThread(channelId, options, reason) {
587
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelId), {
587
+ async createThread(channelID, options, reason) {
588
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelID), {
588
589
  json: {
589
590
  name: options.name,
590
591
  auto_archive_duration: options.autoArchiveDuration,
@@ -611,8 +612,8 @@ class Client extends node_events_1.default {
611
612
  return this.util.channelFromRaw(response);
612
613
  }
613
614
  /** https://discord.com/developers/docs/resources/channel#start-thread-from-message */
614
- async createThreadFromMessage(channelId, messageId, options, reason) {
615
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelId, messageId), {
615
+ async createThreadFromMessage(channelID, messageID, options, reason) {
616
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelID, messageID), {
616
617
  json: {
617
618
  name: options.name,
618
619
  auto_archive_duration: options.autoArchiveDuration,
@@ -623,8 +624,8 @@ class Client extends node_events_1.default {
623
624
  return this.util.channelFromRaw(response);
624
625
  }
625
626
  /** https://discord.com/developers/docs/resources/channel#start-thread-without-message */
626
- async createThreadWithoutMessage(channelId, options, reason) {
627
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelId), {
627
+ async createThreadWithoutMessage(channelID, options, reason) {
628
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelID), {
628
629
  json: {
629
630
  name: options.name,
630
631
  auto_archive_duration: options.autoArchiveDuration,
@@ -637,76 +638,76 @@ class Client extends node_events_1.default {
637
638
  return this.util.channelFromRaw(response);
638
639
  }
639
640
  /** https://discord.com/developers/docs/resources/channel#crosspost-message */
640
- async crosspostMessage(channelId, messageId) {
641
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessage(channelId, messageId));
641
+ async crosspostMessage(channelID, messageID) {
642
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessage(channelID, messageID));
642
643
  return this.util.messageFromRaw(response);
643
644
  }
644
645
  /** https://discord.com/developers/docs/resources/channel#delete-all-reactions */
645
- deleteAllMessageReactions(channelId, messageId, emoji) {
646
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageAllReactions(channelId, messageId, emoji));
646
+ deleteAllMessageReactions(channelID, messageID, emoji) {
647
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageAllReactions(channelID, messageID, emoji));
647
648
  }
648
649
  /** https://discord.com/developers/docs/resources/auto-moderation#delete-auto-moderation-rule */
649
- deleteAutoModerationRule(guildId, autoModerationRuleId, reason) {
650
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildAutoModerationRule(guildId, autoModerationRuleId), {
650
+ deleteAutoModerationRule(guildID, autoModerationRuleID, reason) {
651
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildAutoModerationRule(guildID, autoModerationRuleID), {
651
652
  reason,
652
653
  });
653
654
  }
654
655
  /** https://discord.com/developers/docs/resources/channel#deleteclose-channel */
655
- async deleteChannel(channelId, reason) {
656
- const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channel(channelId), {
656
+ async deleteChannel(channelID, reason) {
657
+ const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channel(channelID), {
657
658
  reason,
658
659
  });
659
660
  return this.util.channelFromRaw(response);
660
661
  }
661
662
  /** https://discord.com/developers/docs/resources/channel#delete-channel-permission */
662
- deleteChannelPermission(channelId, overwriteId, reason) {
663
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPermission(channelId, overwriteId), {
663
+ deleteChannelPermission(channelID, overwriteID, reason) {
664
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPermission(channelID, overwriteID), {
664
665
  reason,
665
666
  });
666
667
  }
667
668
  /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
668
- deleteGlobalApplicationCommand(applicationId, commandId) {
669
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationCommand(applicationId, commandId));
669
+ deleteGlobalApplicationCommand(applicationID, commandID) {
670
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationCommand(applicationID, commandID));
670
671
  }
671
672
  /** https://discord.com/developers/docs/resources/guild#delete-guild */
672
- deleteGuild(guildId) {
673
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guild(guildId));
673
+ deleteGuild(guildID) {
674
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guild(guildID));
674
675
  }
675
676
  /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
676
- deleteGuildApplicationCommand(applicationId, guildId, commandId) {
677
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationGuildCommand(applicationId, guildId, commandId));
677
+ deleteGuildApplicationCommand(applicationID, guildID, commandID) {
678
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationGuildCommand(applicationID, guildID, commandID));
678
679
  }
679
680
  /** https://discord.com/developers/docs/resources/emoji#delete-guild-emoji */
680
- deleteGuildEmoji(guildId, emojiId, reason) {
681
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildEmoji(guildId, emojiId), {
681
+ deleteGuildEmoji(guildID, emojiID, reason) {
682
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildEmoji(guildID, emojiID), {
682
683
  reason,
683
684
  });
684
685
  }
685
686
  /** https://discord.com/developers/docs/resources/guild#delete-guild-integration */
686
- deleteGuildIntegration(guildId, integrationId, reason) {
687
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildIntegration(guildId, integrationId), {
687
+ deleteGuildIntegration(guildID, integrationID, reason) {
688
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildIntegration(guildID, integrationID), {
688
689
  reason,
689
690
  });
690
691
  }
691
692
  /** https://discord.com/developers/docs/resources/guild#delete-guild-role */
692
- deleteGuildRole(guildId, roleId, reason) {
693
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildRole(guildId, roleId), {
693
+ deleteGuildRole(guildID, roleID, reason) {
694
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildRole(guildID, roleID), {
694
695
  reason,
695
696
  });
696
697
  }
697
698
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#delete-guild-scheduled-event */
698
- deleteGuildScheduledEvent(guildId, guildScheduledEventId) {
699
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildScheduledEvent(guildId, guildScheduledEventId));
699
+ deleteGuildScheduledEvent(guildID, guildScheduledEventID) {
700
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildScheduledEvent(guildID, guildScheduledEventID));
700
701
  }
701
702
  /** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
702
- deleteGuildSticker(guildId, stickerId, reason) {
703
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildSticker(guildId, stickerId), {
703
+ deleteGuildSticker(guildID, stickerID, reason) {
704
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildSticker(guildID, stickerID), {
704
705
  reason,
705
706
  });
706
707
  }
707
708
  /** https://discord.com/developers/docs/resources/guild-template#delete-guild-template */
708
- async deleteGuildTemplate(guildId, code) {
709
- const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildTemplate(guildId, code));
709
+ async deleteGuildTemplate(guildID, code) {
710
+ const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildTemplate(guildID, code));
710
711
  return this.util.guildTemplateFromRaw(response);
711
712
  }
712
713
  /** https://discord.com/developers/docs/resources/invite#delete-invite */
@@ -717,50 +718,50 @@ class Client extends node_events_1.default {
717
718
  return this.util.inviteFromRaw(response);
718
719
  }
719
720
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#delete-followup-message */
720
- deleteInteractionFollowupMessage(applicationId, interactionToken, messageId) {
721
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationId, interactionToken, messageId));
721
+ deleteInteractionFollowupMessage(applicationID, interactionToken, messageID) {
722
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationID, interactionToken, messageID));
722
723
  }
723
724
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#delete-original-interaction-response */
724
- deleteInteractionResponse(applicationId, interactionToken) {
725
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationId, interactionToken));
725
+ deleteInteractionResponse(applicationID, interactionToken) {
726
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationID, interactionToken));
726
727
  }
727
728
  /** https://discord.com/developers/docs/resources/channel#delete-message */
728
- deleteMessage(channelId, messageId, reason) {
729
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessage(channelId, messageId), {
729
+ deleteMessage(channelID, messageID, reason) {
730
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessage(channelID, messageID), {
730
731
  reason,
731
732
  });
732
733
  }
733
734
  /** https://discord.com/developers/docs/resources/channel#delete-user-reaction */
734
- deleteMessageReaction(channelId, messageId, emoji, userId) {
735
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageReaction(channelId, messageId, emoji, userId));
735
+ deleteMessageReaction(channelID, messageID, emoji, userID) {
736
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageReaction(channelID, messageID, emoji, userID));
736
737
  }
737
738
  /** https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance */
738
- deleteStageInstance(channelId, reason) {
739
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.stageInstance(channelId), {
739
+ deleteStageInstance(channelID, reason) {
740
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.stageInstance(channelID), {
740
741
  reason,
741
742
  });
742
743
  }
743
744
  /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
744
- deleteTestEntitlement(applicationId, entitlementId) {
745
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationEntitlement(applicationId, entitlementId));
745
+ deleteTestEntitlement(applicationID, entitlementID) {
746
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationEntitlement(applicationID, entitlementID));
746
747
  }
747
748
  /** https://discord.com/developers/docs/resources/webhook#delete-webhook */
748
- deleteWebhook(webhookId, reason) {
749
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookId), {
749
+ deleteWebhook(webhookID, reason) {
750
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookID), {
750
751
  reason,
751
752
  });
752
753
  }
753
754
  /** https://discord.com/developers/docs/resources/webhook#delete-webhook-message */
754
- deleteWebhookMessage(webhookId, webhookToken, messageId, options) {
755
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(webhookId, webhookToken, messageId), {
755
+ deleteWebhookMessage(webhookID, webhookToken, messageID, options) {
756
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(webhookID, webhookToken, messageID), {
756
757
  query: {
757
- thread_id: options?.threadId,
758
+ thread_id: options?.threadID,
758
759
  },
759
760
  });
760
761
  }
761
762
  /** https://discord.com/developers/docs/resources/webhook#delete-webhook-with-token */
762
- deleteWebhookWithToken(webhookId, webhookToken, reason) {
763
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookId, webhookToken), {
763
+ deleteWebhookWithToken(webhookID, webhookToken, reason) {
764
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookID, webhookToken), {
764
765
  reason,
765
766
  authorization: false,
766
767
  });
@@ -769,8 +770,8 @@ class Client extends node_events_1.default {
769
770
  this.shards.disconnect();
770
771
  }
771
772
  /** https://discord.com/developers/docs/resources/auto-moderation#modify-auto-moderation-rule */
772
- async editAutoModerationRule(guildId, autoModerationRuleId, options, reason) {
773
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildAutoModerationRule(guildId, autoModerationRuleId), {
773
+ async editAutoModerationRule(guildID, autoModerationRuleID, options, reason) {
774
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildAutoModerationRule(guildID, autoModerationRuleID), {
774
775
  json: {
775
776
  name: options.name,
776
777
  event_type: options.eventType,
@@ -779,7 +780,7 @@ class Client extends node_events_1.default {
779
780
  actions: options.actions?.map((action) => ({
780
781
  type: action.type,
781
782
  metadata: {
782
- channel_id: action.metadata.channelId,
783
+ channel_id: action.metadata.channelID,
783
784
  duration_seconds: action.metadata.durationSeconds,
784
785
  custom_message: action.metadata.customMessage,
785
786
  },
@@ -793,8 +794,8 @@ class Client extends node_events_1.default {
793
794
  return this.util.autoModerationRuleFromRaw(response);
794
795
  }
795
796
  /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
796
- async editApplicationCommandPermissions(applicationId, guildId, commandId, options) {
797
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommandPermissions(applicationId, guildId, commandId), {
797
+ async editApplicationCommandPermissions(applicationID, guildID, commandID, options) {
798
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommandPermissions(applicationID, guildID, commandID), {
798
799
  json: {
799
800
  permissions: options.permissions.map((permission) => this.util.guildApplicationCommandPermissionsToRaw(permission)),
800
801
  },
@@ -802,8 +803,8 @@ class Client extends node_events_1.default {
802
803
  return this.util.guildApplicationCommandPermissionsFromRaw(response);
803
804
  }
804
805
  /** https://discord.com/developers/docs/resources/channel#modify-channel */
805
- async editChannel(channelId, options, reason) {
806
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channel(channelId), {
806
+ async editChannel(channelID, options, reason) {
807
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channel(channelID), {
807
808
  json: {
808
809
  name: options.name,
809
810
  type: options.type,
@@ -813,7 +814,7 @@ class Client extends node_events_1.default {
813
814
  rate_limit_per_user: options.rateLimitPerUser,
814
815
  bitrate: options.bitrate,
815
816
  permission_overwrites: options.permissionOverwrites,
816
- parent_id: options.parentId,
817
+ parent_id: options.parentID,
817
818
  rtc_region: options.rtcRegion,
818
819
  video_quality_mode: options.videoQualityMode,
819
820
  default_auto_archive_duration: options.defaultAutoArchiveDuration,
@@ -834,20 +835,20 @@ class Client extends node_events_1.default {
834
835
  return this.util.channelFromRaw(response);
835
836
  }
836
837
  /** https://discord.com/developers/docs/resources/channel#edit-channel-permissions */
837
- editChannelPermissions(channelId, overwriteId, options, reason) {
838
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPermission(channelId, overwriteId), {
838
+ editChannelPermissions(channelID, overwriteID, options, reason) {
839
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPermission(channelID, overwriteID), {
839
840
  json: options,
840
841
  reason,
841
842
  });
842
843
  }
843
844
  /** https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions */
844
- editChannelPositions(guildId, options) {
845
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildChannels(guildId), {
845
+ editChannelPositions(guildID, options) {
846
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildChannels(guildID), {
846
847
  json: options.map((data) => ({
847
848
  id: data.id,
848
849
  position: data.position,
849
850
  lock_permissions: data.lockPermissions,
850
- parent_id: data.parentId,
851
+ parent_id: data.parentID,
851
852
  })),
852
853
  });
853
854
  }
@@ -863,8 +864,8 @@ class Client extends node_events_1.default {
863
864
  return this.util.userFromRaw(response);
864
865
  }
865
866
  /** https://discord.com/developers/docs/resources/guild#modify-current-member */
866
- async editCurrentGuildMember(guildId, options, reason) {
867
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildId), {
867
+ async editCurrentGuildMember(guildID, options, reason) {
868
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildID), {
868
869
  json: {
869
870
  nick: options.nick,
870
871
  },
@@ -873,10 +874,10 @@ class Client extends node_events_1.default {
873
874
  return this.util.guildMemberFromRaw(response);
874
875
  }
875
876
  /** https://discord.com/developers/docs/resources/guild#modify-current-user-voice-state */
876
- editCurrentUserVoiceState(guildId, options) {
877
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildId), {
877
+ editCurrentUserVoiceState(guildID, options) {
878
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildID), {
878
879
  json: {
879
- channel_id: options.channelId,
880
+ channel_id: options.channelID,
880
881
  suppress: options.suppress,
881
882
  requestToSpeakTimestamp: options.requestToSpeakTimestamp,
882
883
  },
@@ -900,52 +901,52 @@ class Client extends node_events_1.default {
900
901
  return this.util.applicationFromRaw(response);
901
902
  }
902
903
  /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
903
- async editGlobalApplicationCommand(applicationId, commandId, options) {
904
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationCommand(applicationId, commandId), {
904
+ async editGlobalApplicationCommand(applicationID, commandID, options) {
905
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationCommand(applicationID, commandID), {
905
906
  json: this.util.partialApplicationCommandToRaw(options),
906
907
  });
907
908
  return this.util.applicationCommandFromRaw(response);
908
909
  }
909
910
  /** https://discord.com/developers/docs/resources/guild#modify-guild */
910
- async editGuild(guildId, options, reason) {
911
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guild(guildId), {
911
+ async editGuild(guildID, options, reason) {
912
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guild(guildID), {
912
913
  json: {
913
914
  name: options.name,
914
915
  region: options.region,
915
916
  verification_level: options.verificationLevel,
916
917
  default_message_notifications: options.defaultMessageNotifications,
917
918
  explicit_content_filter: options.explicitContentFilter,
918
- afk_channel_id: options.afkChannelId,
919
+ afk_channel_id: options.afkChannelID,
919
920
  afk_timeout: options.afkTimeout,
920
921
  icon: options.icon,
921
- owner_id: options.ownerId,
922
+ owner_id: options.ownerID,
922
923
  splash: options.splash,
923
924
  discovery_splash: options.discoverySplash,
924
925
  banner: options.banner,
925
- system_channel_id: options.systemChannelId,
926
+ system_channel_id: options.systemChannelID,
926
927
  system_channel_flags: options.systemChannelFlags,
927
- rules_channel_id: options.rulesChannelId,
928
- public_updates_channel_id: options.publicUpdatesChannelId,
928
+ rules_channel_id: options.rulesChannelID,
929
+ public_updates_channel_id: options.publicUpdatesChannelID,
929
930
  preferred_locale: options.preferredLocale,
930
931
  features: options.features,
931
932
  description: options.description,
932
933
  premium_progress_bar_enabled: options.premiumProgressBarEnabled,
933
- safety_alerts_channel_id: options.safetyAlertsChannelId,
934
+ safety_alerts_channel_id: options.safetyAlertsChannelID,
934
935
  },
935
936
  reason,
936
937
  });
937
938
  return this.util.guildFromRaw(response);
938
939
  }
939
940
  /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
940
- async editGuildApplicationCommand(applicationId, guildId, commandId, options) {
941
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationGuildCommand(applicationId, guildId, commandId), {
941
+ async editGuildApplicationCommand(applicationID, guildID, commandID, options) {
942
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationGuildCommand(applicationID, guildID, commandID), {
942
943
  json: this.util.partialApplicationCommandToRaw(options),
943
944
  });
944
945
  return this.util.applicationCommandFromRaw(response);
945
946
  }
946
947
  /** https://discord.com/developers/docs/resources/emoji#modify-guild-emoji */
947
- async editGuildEmoji(guildId, emojiId, options, reason) {
948
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildEmoji(guildId, emojiId), {
948
+ async editGuildEmoji(guildID, emojiID, options, reason) {
949
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildEmoji(guildID, emojiID), {
949
950
  json: {
950
951
  name: options.name,
951
952
  roles: options.roles,
@@ -955,14 +956,14 @@ class Client extends node_events_1.default {
955
956
  return this.util.emojiFromRaw(response);
956
957
  }
957
958
  /** https://discord.com/developers/docs/resources/guild#modify-guild-member */
958
- async editGuildMember(guildId, userId, options, reason) {
959
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildId, userId), {
959
+ async editGuildMember(guildID, userID, options, reason) {
960
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildID, userID), {
960
961
  json: {
961
962
  nick: options.nick,
962
963
  roles: options.roles,
963
964
  mute: options.mute,
964
965
  deaf: options.deaf,
965
- channel_id: options.channelId,
966
+ channel_id: options.channelID,
966
967
  communication_disabled_until: options.communicationDisabledUntil,
967
968
  flags: options.flags,
968
969
  },
@@ -971,8 +972,8 @@ class Client extends node_events_1.default {
971
972
  return this.util.guildMemberFromRaw(response);
972
973
  }
973
974
  /** https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level */
974
- editGuildMFALevel(guildId, options, reason) {
975
- return this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildMFA(guildId), {
975
+ editGuildMFALevel(guildID, options, reason) {
976
+ return this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildMFA(guildID), {
976
977
  json: {
977
978
  level: options.level,
978
979
  },
@@ -980,20 +981,20 @@ class Client extends node_events_1.default {
980
981
  });
981
982
  }
982
983
  /** https://discord.com/developers/docs/resources/guild#modify-guild-onboarding */
983
- editGuildOnboarding(guildId, options, reason) {
984
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildOnboarding(guildId), {
984
+ editGuildOnboarding(guildID, options, reason) {
985
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildOnboarding(guildID), {
985
986
  json: {
986
987
  prompts: options.prompts.map((prompt) => ({
987
988
  id: prompt.id,
988
989
  type: prompt.type,
989
990
  options: prompt.options.map((promptOption) => ({
990
991
  id: promptOption.id,
991
- channel_ids: promptOption.channelIds,
992
- role_ids: promptOption.roleIds,
992
+ channel_ids: promptOption.channelIDs,
993
+ role_ids: promptOption.roleIDs,
993
994
  emoji: promptOption.emoji !== undefined
994
995
  ? this.util.emojiToRaw(promptOption.emoji)
995
996
  : undefined,
996
- emoji_id: promptOption.emojiId,
997
+ emoji_id: promptOption.emojiID,
997
998
  emoji_name: promptOption.emojiName,
998
999
  emoji_animated: promptOption.emojiAnimated,
999
1000
  title: promptOption.title,
@@ -1009,8 +1010,8 @@ class Client extends node_events_1.default {
1009
1010
  });
1010
1011
  }
1011
1012
  /** https://discord.com/developers/docs/resources/guild#modify-guild-role */
1012
- async editGuildRole(guildId, roleId, options, reason) {
1013
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRole(guildId, roleId), {
1013
+ async editGuildRole(guildID, roleID, options, reason) {
1014
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRole(guildID, roleID), {
1014
1015
  json: {
1015
1016
  name: options?.name,
1016
1017
  permissions: options?.permissions,
@@ -1025,17 +1026,17 @@ class Client extends node_events_1.default {
1025
1026
  return this.util.roleFromRaw(response);
1026
1027
  }
1027
1028
  /** https://discord.com/developers/docs/resources/guild#modify-guild-role-positions */
1028
- async editGuildRolePositions(guildId, options) {
1029
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRoles(guildId), {
1029
+ async editGuildRolePositions(guildID, options) {
1030
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRoles(guildID), {
1030
1031
  json: options,
1031
1032
  });
1032
1033
  return response.map((role) => this.util.roleFromRaw(role));
1033
1034
  }
1034
1035
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event */
1035
- async editGuildScheduledEvent(guildId, guildScheduledEventId, options, reason) {
1036
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildScheduledEvent(guildId, guildScheduledEventId), {
1036
+ async editGuildScheduledEvent(guildID, guildScheduledEventID, options, reason) {
1037
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildScheduledEvent(guildID, guildScheduledEventID), {
1037
1038
  json: {
1038
- channel_id: options.channelId,
1039
+ channel_id: options.channelID,
1039
1040
  entity_metadata: options.entityMetadata,
1040
1041
  name: options.name,
1041
1042
  privacy_level: options.privacyLevel,
@@ -1051,8 +1052,8 @@ class Client extends node_events_1.default {
1051
1052
  return this.util.guildScheduledEventFromRaw(response);
1052
1053
  }
1053
1054
  /** https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */
1054
- async editGuildSticker(guildId, stickerId, options, reason) {
1055
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildSticker(guildId, stickerId), {
1055
+ async editGuildSticker(guildID, stickerID, options, reason) {
1056
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildSticker(guildID, stickerID), {
1056
1057
  json: {
1057
1058
  name: options.name,
1058
1059
  description: options.description,
@@ -1063,8 +1064,8 @@ class Client extends node_events_1.default {
1063
1064
  return this.util.stickerFromRaw(response);
1064
1065
  }
1065
1066
  /** https://discord.com/developers/docs/resources/guild-template#modify-guild-template */
1066
- async editGuildTemplate(guildId, code, options) {
1067
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildTemplate(guildId, code), {
1067
+ async editGuildTemplate(guildID, code, options) {
1068
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildTemplate(guildID, code), {
1068
1069
  json: {
1069
1070
  name: options.name,
1070
1071
  description: options.description,
@@ -1073,8 +1074,8 @@ class Client extends node_events_1.default {
1073
1074
  return this.util.guildTemplateFromRaw(response);
1074
1075
  }
1075
1076
  /** https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen */
1076
- async editGuildWelcomeScreen(guildId, options, reason) {
1077
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWelcomeScreen(guildId), {
1077
+ async editGuildWelcomeScreen(guildID, options, reason) {
1078
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWelcomeScreen(guildID), {
1078
1079
  json: {
1079
1080
  enabled: options.enabled,
1080
1081
  welcome_channels: options.welcomeChannels,
@@ -1085,30 +1086,30 @@ class Client extends node_events_1.default {
1085
1086
  return {
1086
1087
  description: response.description,
1087
1088
  welcomeChannels: response.welcome_channels.map((welcomeScreenChannel) => ({
1088
- channelId: welcomeScreenChannel.channel_id,
1089
+ channelID: welcomeScreenChannel.channel_id,
1089
1090
  description: welcomeScreenChannel.description,
1090
- emojiId: welcomeScreenChannel.emoji_id,
1091
+ emojiID: welcomeScreenChannel.emoji_id,
1091
1092
  emojiName: welcomeScreenChannel.emoji_name,
1092
1093
  })),
1093
1094
  };
1094
1095
  }
1095
1096
  /** https://discord.com/developers/docs/resources/guild#modify-guild-widget */
1096
- async editGuildWidget(guildId, options, reason) {
1097
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWidgetSettings(guildId), {
1097
+ async editGuildWidget(guildID, options, reason) {
1098
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWidgetSettings(guildID), {
1098
1099
  json: {
1099
1100
  enabled: options.enabled,
1100
- channel_id: options.channelId,
1101
+ channel_id: options.channelID,
1101
1102
  },
1102
1103
  reason,
1103
1104
  });
1104
1105
  return {
1105
1106
  enabled: response.enabled,
1106
- channelId: response.channel_id,
1107
+ channelID: response.channel_id,
1107
1108
  };
1108
1109
  }
1109
1110
  /** https://discord.com/developers/docs/resources/channel#edit-message */
1110
- async editMessage(channelId, messageId, options) {
1111
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channelMessage(channelId, messageId), {
1111
+ async editMessage(channelID, messageID, options) {
1112
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channelMessage(channelID, messageID), {
1112
1113
  json: {
1113
1114
  content: options.content,
1114
1115
  embeds: options.embeds !== null
@@ -1137,8 +1138,8 @@ class Client extends node_events_1.default {
1137
1138
  return this.util.messageFromRaw(response);
1138
1139
  }
1139
1140
  /** https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance */
1140
- async editStageInstance(channelId, options, reason) {
1141
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.stageInstance(channelId), {
1141
+ async editStageInstance(channelID, options, reason) {
1142
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.stageInstance(channelID), {
1142
1143
  json: {
1143
1144
  topic: options.topic,
1144
1145
  privacy_level: options.privacyLevel,
@@ -1148,8 +1149,8 @@ class Client extends node_events_1.default {
1148
1149
  return this.util.stageInstanceFromRaw(response);
1149
1150
  }
1150
1151
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message */
1151
- async editInteractionFollowupMessage(applicationId, interactionToken, messageId, options) {
1152
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookMessage(applicationId, interactionToken, messageId), {
1152
+ async editInteractionFollowupMessage(applicationID, interactionToken, messageID, options) {
1153
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookMessage(applicationID, interactionToken, messageID), {
1153
1154
  json: {
1154
1155
  content: options.content,
1155
1156
  embeds: options.embeds !== null
@@ -1175,14 +1176,14 @@ class Client extends node_events_1.default {
1175
1176
  },
1176
1177
  files: options.files,
1177
1178
  query: {
1178
- thread_id: options.threadId,
1179
+ thread_id: options.threadID,
1179
1180
  },
1180
1181
  });
1181
1182
  return this.util.messageFromRaw(response);
1182
1183
  }
1183
1184
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response */
1184
- async editInteractionResponse(applicationId, interactionToken, options) {
1185
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(applicationId, interactionToken), {
1185
+ async editInteractionResponse(applicationID, interactionToken, options) {
1186
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(applicationID, interactionToken), {
1186
1187
  json: {
1187
1188
  content: options.content,
1188
1189
  embeds: options.embeds !== null
@@ -1208,36 +1209,36 @@ class Client extends node_events_1.default {
1208
1209
  },
1209
1210
  files: options.files,
1210
1211
  query: {
1211
- thread_id: options.threadId,
1212
+ thread_id: options.threadID,
1212
1213
  },
1213
1214
  });
1214
1215
  return this.util.messageFromRaw(response);
1215
1216
  }
1216
1217
  /** https://discord.com/developers/docs/resources/guild#modify-user-voice-state */
1217
- editUserVoiceState(guildId, userId, options) {
1218
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildId, userId), {
1218
+ editUserVoiceState(guildID, userID, options) {
1219
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildID, userID), {
1219
1220
  json: {
1220
- channel_id: options.channelId,
1221
+ channel_id: options.channelID,
1221
1222
  suppress: options.suppress,
1222
1223
  requestToSpeakTimestamp: options.requestToSpeakTimestamp,
1223
1224
  },
1224
1225
  });
1225
1226
  }
1226
1227
  /** https://discord.com/developers/docs/resources/webhook#modify-webhook */
1227
- async editWebhook(webhookId, options, reason) {
1228
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookId), {
1228
+ async editWebhook(webhookID, options, reason) {
1229
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookID), {
1229
1230
  json: {
1230
1231
  name: options.name,
1231
1232
  avatar: options.avatar,
1232
- channel_id: options.channelId,
1233
+ channel_id: options.channelID,
1233
1234
  },
1234
1235
  reason,
1235
1236
  });
1236
1237
  return this.util.webhookFromRaw(response);
1237
1238
  }
1238
1239
  /** https://discord.com/developers/docs/resources/webhook#edit-webhook-message */
1239
- async editWebhookMessage(webhookId, webhookToken, messageId, options) {
1240
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(webhookId, webhookToken, messageId), {
1240
+ async editWebhookMessage(webhookID, webhookToken, messageID, options) {
1241
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(webhookID, webhookToken, messageID), {
1241
1242
  json: {
1242
1243
  content: options.content,
1243
1244
  embeds: options.embeds !== null
@@ -1263,14 +1264,14 @@ class Client extends node_events_1.default {
1263
1264
  },
1264
1265
  files: options.files,
1265
1266
  query: {
1266
- thread_id: options.threadId,
1267
+ thread_id: options.threadID,
1267
1268
  },
1268
1269
  });
1269
1270
  return this.util.messageFromRaw(response);
1270
1271
  }
1271
1272
  /** https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token */
1272
- async editWebhookWithToken(webhookId, webhookToken, options, reason) {
1273
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookId, webhookToken), {
1273
+ async editWebhookWithToken(webhookID, webhookToken, options, reason) {
1274
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookID, webhookToken), {
1274
1275
  json: {
1275
1276
  name: options.name,
1276
1277
  avatar: options.avatar,
@@ -1281,13 +1282,13 @@ class Client extends node_events_1.default {
1281
1282
  return this.util.webhookFromRaw(response);
1282
1283
  }
1283
1284
  /** https://discord.com/developers/docs/resources/poll#end-poll */
1284
- async endPoll(channelId, messageId) {
1285
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.pollExpire(channelId, messageId));
1285
+ async endPoll(channelID, messageID) {
1286
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.pollExpire(channelID, messageID));
1286
1287
  return this.util.messageFromRaw(response);
1287
1288
  }
1288
1289
  /** https://discord.com/developers/docs/resources/webhook#execute-webhook */
1289
- async executeWebhook(webhookId, webhookToken, options) {
1290
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(webhookId, webhookToken), {
1290
+ async executeWebhook(webhookID, webhookToken, options) {
1291
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(webhookID, webhookToken), {
1291
1292
  json: {
1292
1293
  content: options.content,
1293
1294
  username: options.username,
@@ -1319,7 +1320,7 @@ class Client extends node_events_1.default {
1319
1320
  ? {
1320
1321
  question: options.poll.question,
1321
1322
  answers: options.poll.answers.map((answer) => ({
1322
- answer_id: answer.answerId,
1323
+ answer_id: answer.answerID,
1323
1324
  poll_media: answer.pollMedia,
1324
1325
  })),
1325
1326
  duration: options.poll.duration,
@@ -1331,7 +1332,7 @@ class Client extends node_events_1.default {
1331
1332
  files: options.files,
1332
1333
  query: {
1333
1334
  wait: options.wait,
1334
- thread_id: options.threadId,
1335
+ thread_id: options.threadID,
1335
1336
  },
1336
1337
  });
1337
1338
  return response !== null ? this.util.messageFromRaw(response) : response;
@@ -1341,10 +1342,10 @@ class Client extends node_events_1.default {
1341
1342
  *
1342
1343
  * https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook
1343
1344
  */
1344
- async executeWebhookPlatform(webhookId, webhookToken, platform, options) {
1345
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookPlatform(webhookId, webhookToken, platform), {
1345
+ async executeWebhookPlatform(webhookID, webhookToken, platform, options) {
1346
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookPlatform(webhookID, webhookToken, platform), {
1346
1347
  query: {
1347
- thread_id: options.threadId,
1348
+ thread_id: options.threadID,
1348
1349
  wait: options.wait,
1349
1350
  },
1350
1351
  json: options,
@@ -1352,29 +1353,29 @@ class Client extends node_events_1.default {
1352
1353
  return response !== null ? this.util.messageFromRaw(response) : null;
1353
1354
  }
1354
1355
  /** https://discord.com/developers/docs/resources/channel#follow-announcement-channel */
1355
- async followChannel(channelId, options, reason) {
1356
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelFollowers(channelId), {
1356
+ async followChannel(channelID, options, reason) {
1357
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelFollowers(channelID), {
1357
1358
  json: {
1358
- webhook_channel_id: options.webhookChannelId,
1359
+ webhook_channel_id: options.webhookChannelID,
1359
1360
  },
1360
1361
  reason,
1361
1362
  });
1362
1363
  return {
1363
- channelId: response.channel_id,
1364
- webhookId: response.webhook_id,
1364
+ channelID: response.channel_id,
1365
+ webhookID: response.webhook_id,
1365
1366
  };
1366
1367
  }
1367
1368
  /** https://discord.com/developers/docs/resources/guild#list-active-guild-threads */
1368
- async getActiveGuildThreads(guildId) {
1369
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildActiveThreads(guildId));
1369
+ async getActiveGuildThreads(guildID) {
1370
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildActiveThreads(guildID));
1370
1371
  return {
1371
1372
  threads: response.threads.map((thread) => this.util.channelFromRaw(thread)),
1372
1373
  members: response.members.map((threadMember) => this.util.threadMemberFromRaw(threadMember)),
1373
1374
  };
1374
1375
  }
1375
1376
  /** https://discord.com/developers/docs/resources/channel#list-public-archived-threads */
1376
- async getArchivedThreads(channelId, archivedStatus, options) {
1377
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelId, archivedStatus, false), {
1377
+ async getArchivedThreads(channelID, archivedStatus, options) {
1378
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelID, archivedStatus, false), {
1378
1379
  query: {
1379
1380
  before: options?.before,
1380
1381
  limit: options?.limit,
@@ -1387,10 +1388,10 @@ class Client extends node_events_1.default {
1387
1388
  };
1388
1389
  }
1389
1390
  /** https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log */
1390
- async getAuditLog(guildId, options) {
1391
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAuditLog(guildId), {
1391
+ async getAuditLog(guildID, options) {
1392
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAuditLog(guildID), {
1392
1393
  query: {
1393
- user_id: options?.userId,
1394
+ user_id: options?.userID,
1394
1395
  action_type: options?.actionType,
1395
1396
  before: options?.before,
1396
1397
  after: options?.after,
@@ -1400,23 +1401,23 @@ class Client extends node_events_1.default {
1400
1401
  return this.util.auditLogFromRaw(response);
1401
1402
  }
1402
1403
  /** https://discord.com/developers/docs/resources/auto-moderation#get-auto-moderation-rule */
1403
- async getAutoModerationRule(guildId, ruleId) {
1404
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRule(guildId, ruleId));
1404
+ async getAutoModerationRule(guildID, ruleID) {
1405
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRule(guildID, ruleID));
1405
1406
  return this.util.autoModerationRuleFromRaw(response);
1406
1407
  }
1407
1408
  /** https://discord.com/developers/docs/resources/auto-moderation#list-auto-moderation-rules-for-guild */
1408
- async getAutoModerationRules(guildId) {
1409
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRules(guildId));
1409
+ async getAutoModerationRules(guildID) {
1410
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRules(guildID));
1410
1411
  return response.map((autoModerationRule) => this.util.autoModerationRuleFromRaw(autoModerationRule));
1411
1412
  }
1412
1413
  /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
1413
- async getApplicationCommandPermissions(applicationId, guildId, commandId) {
1414
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommandPermissions(applicationId, guildId, commandId));
1414
+ async getApplicationCommandPermissions(applicationID, guildID, commandID) {
1415
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommandPermissions(applicationID, guildID, commandID));
1415
1416
  return this.util.guildApplicationCommandPermissionsFromRaw(response);
1416
1417
  }
1417
1418
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
1418
- async getApplicationRoleConnectionMetadataRecords(applicationId) {
1419
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationId));
1419
+ async getApplicationRoleConnectionMetadataRecords(applicationID) {
1420
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationID));
1420
1421
  return response.map((applicationRoleConnectionMetadata) => ({
1421
1422
  type: applicationRoleConnectionMetadata.type,
1422
1423
  key: applicationRoleConnectionMetadata.key,
@@ -1427,23 +1428,23 @@ class Client extends node_events_1.default {
1427
1428
  }));
1428
1429
  }
1429
1430
  /** https://discord.com/developers/docs/resources/channel#get-channel */
1430
- async getChannel(channelId) {
1431
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channel(channelId));
1431
+ async getChannel(channelID) {
1432
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channel(channelID));
1432
1433
  return this.util.channelFromRaw(response);
1433
1434
  }
1434
1435
  /** https://discord.com/developers/docs/resources/guild#get-guild-channels */
1435
- async getChannels(guildId) {
1436
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildChannels(guildId));
1436
+ async getChannels(guildID) {
1437
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildChannels(guildID));
1437
1438
  return response.map((channel) => this.util.channelFromRaw(channel));
1438
1439
  }
1439
1440
  /** https://discord.com/developers/docs/resources/channel#get-channel-invites */
1440
- async getChannelInvites(channelId) {
1441
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelInvites(channelId));
1441
+ async getChannelInvites(channelID) {
1442
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelInvites(channelID));
1442
1443
  return response.map((invite) => this.util.inviteFromRaw(invite));
1443
1444
  }
1444
1445
  /** https://discord.com/developers/docs/resources/webhook#get-channel-webhooks */
1445
- async getChannelWebhooks(channelId) {
1446
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelWebhooks(channelId));
1446
+ async getChannelWebhooks(channelID) {
1447
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelWebhooks(channelID));
1447
1448
  return response.map((webhook) => this.util.webhookFromRaw(webhook));
1448
1449
  }
1449
1450
  /** https://discord.com/developers/docs/resources/application#get-current-application */
@@ -1452,8 +1453,8 @@ class Client extends node_events_1.default {
1452
1453
  return this.util.applicationFromRaw(response);
1453
1454
  }
1454
1455
  /** https://discord.com/developers/docs/resources/user#get-current-user-application-role-connection */
1455
- async getCurrentApplicationRoleConnection(applicationId) {
1456
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.userApplicationRoleConnection(applicationId));
1456
+ async getCurrentApplicationRoleConnection(applicationID) {
1457
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.userApplicationRoleConnection(applicationID));
1457
1458
  return {
1458
1459
  platformName: response.platform_name,
1459
1460
  platformUsername: response.platform_username,
@@ -1468,8 +1469,8 @@ class Client extends node_events_1.default {
1468
1469
  };
1469
1470
  }
1470
1471
  /** https://discord.com/developers/docs/resources/user#get-current-user-guild-member */
1471
- async getCurrentGuildMember(guildId) {
1472
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildId));
1472
+ async getCurrentGuildMember(guildID) {
1473
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildID));
1473
1474
  return this.util.guildMemberFromRaw(response);
1474
1475
  }
1475
1476
  /** https://discord.com/developers/docs/resources/user#get-current-user-connections */
@@ -1489,15 +1490,15 @@ class Client extends node_events_1.default {
1489
1490
  }));
1490
1491
  }
1491
1492
  /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
1492
- async getEntitlements(applicationId, options) {
1493
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEntitlements(applicationId), {
1493
+ async getEntitlements(applicationID, options) {
1494
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEntitlements(applicationID), {
1494
1495
  query: {
1495
- user_id: options?.userId,
1496
- sku_ids: options?.skuIds,
1496
+ user_id: options?.userID,
1497
+ sku_ids: options?.skuIDs,
1497
1498
  before: options?.before,
1498
1499
  after: options?.after,
1499
1500
  limit: options?.limit,
1500
- guild_id: options?.guildId,
1501
+ guild_id: options?.guildID,
1501
1502
  exclude_ended: options?.excludeEnded,
1502
1503
  },
1503
1504
  });
@@ -1522,13 +1523,13 @@ class Client extends node_events_1.default {
1522
1523
  };
1523
1524
  }
1524
1525
  /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
1525
- async getGlobalApplicationCommand(applicationId, commandId) {
1526
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommand(applicationId, commandId));
1526
+ async getGlobalApplicationCommand(applicationID, commandID) {
1527
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommand(applicationID, commandID));
1527
1528
  return this.util.applicationCommandFromRaw(response);
1528
1529
  }
1529
1530
  /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
1530
- async getGlobalApplicationCommands(applicationId, options) {
1531
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommands(applicationId), {
1531
+ async getGlobalApplicationCommands(applicationID, options) {
1532
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommands(applicationID), {
1532
1533
  query: {
1533
1534
  with_localizations: options.withLocalizations,
1534
1535
  },
@@ -1536,8 +1537,8 @@ class Client extends node_events_1.default {
1536
1537
  return response.map((applicationCommand) => this.util.applicationCommandFromRaw(applicationCommand));
1537
1538
  }
1538
1539
  /** https://discord.com/developers/docs/resources/guild#get-guild */
1539
- async getGuild(guildId, options) {
1540
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guild(guildId), {
1540
+ async getGuild(guildID, options) {
1541
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guild(guildID), {
1541
1542
  query: {
1542
1543
  with_counts: options?.withCounts,
1543
1544
  },
@@ -1557,13 +1558,13 @@ class Client extends node_events_1.default {
1557
1558
  return response.map((guild) => this.util.guildFromRaw(guild));
1558
1559
  }
1559
1560
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
1560
- async getGuildApplicationCommand(applicationId, guildId, commandId) {
1561
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommand(applicationId, guildId, commandId));
1561
+ async getGuildApplicationCommand(applicationID, guildID, commandID) {
1562
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommand(applicationID, guildID, commandID));
1562
1563
  return this.util.applicationCommandFromRaw(response);
1563
1564
  }
1564
1565
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
1565
- async getGuildApplicationCommands(applicationId, guildId, options) {
1566
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommands(applicationId, guildId), {
1566
+ async getGuildApplicationCommands(applicationID, guildID, options) {
1567
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommands(applicationID, guildID), {
1567
1568
  query: {
1568
1569
  with_localizations: options?.withLocalizations,
1569
1570
  },
@@ -1571,21 +1572,21 @@ class Client extends node_events_1.default {
1571
1572
  return response.map((applicationCommand) => this.util.applicationCommandFromRaw(applicationCommand));
1572
1573
  }
1573
1574
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions */
1574
- async getGuildApplicationCommandPermissions(applicationId, guildId) {
1575
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildApplicationCommandsPermissions(applicationId, guildId));
1575
+ async getGuildApplicationCommandPermissions(applicationID, guildID) {
1576
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildApplicationCommandsPermissions(applicationID, guildID));
1576
1577
  return this.util.guildApplicationCommandPermissionsFromRaw(response);
1577
1578
  }
1578
1579
  /** https://discord.com/developers/docs/resources/guild#get-guild-ban */
1579
- async getGuildBan(guildId, userId) {
1580
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBan(guildId, userId));
1580
+ async getGuildBan(guildID, userID) {
1581
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBan(guildID, userID));
1581
1582
  return {
1582
1583
  reason: response.reason,
1583
1584
  user: this.util.userFromRaw(response.user),
1584
1585
  };
1585
1586
  }
1586
1587
  /** https://discord.com/developers/docs/resources/guild#get-guild-bans */
1587
- async getGuildBans(guildId, options) {
1588
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBans(guildId), {
1588
+ async getGuildBans(guildID, options) {
1589
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBans(guildID), {
1589
1590
  query: {
1590
1591
  limit: options?.limit,
1591
1592
  before: options?.before,
@@ -1598,51 +1599,51 @@ class Client extends node_events_1.default {
1598
1599
  }));
1599
1600
  }
1600
1601
  /** https://discord.com/developers/docs/resources/emoji#get-guild-emoji */
1601
- async getGuildEmoji(guildId, emojiId) {
1602
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmoji(guildId, emojiId));
1602
+ async getGuildEmoji(guildID, emojiID) {
1603
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmoji(guildID, emojiID));
1603
1604
  return this.util.emojiFromRaw(response);
1604
1605
  }
1605
1606
  /** https://discord.com/developers/docs/resources/emoji#list-guild-emojis */
1606
- async getGuildEmojis(guildId) {
1607
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmojis(guildId));
1607
+ async getGuildEmojis(guildID) {
1608
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmojis(guildID));
1608
1609
  return response.map((emoji) => this.util.emojiFromRaw(emoji));
1609
1610
  }
1610
1611
  /** https://discord.com/developers/docs/resources/guild#get-guild-integrations */
1611
- async getGuildIntegrations(guildId) {
1612
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildIntegrations(guildId));
1612
+ async getGuildIntegrations(guildID) {
1613
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildIntegrations(guildID));
1613
1614
  return response.map((integration) => this.util.integrationFromRaw(integration));
1614
1615
  }
1615
1616
  /** https://discord.com/developers/docs/resources/guild#get-guild-invites */
1616
- async getGuildInvites(guildId) {
1617
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildInvites(guildId));
1617
+ async getGuildInvites(guildID) {
1618
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildInvites(guildID));
1618
1619
  return response.map((invite) => this.util.inviteFromRaw(invite));
1619
1620
  }
1620
1621
  /** https://discord.com/developers/docs/resources/guild#get-guild-member */
1621
- async getGuildMember(guildId, userId) {
1622
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildId, userId));
1622
+ async getGuildMember(guildID, userID) {
1623
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildID, userID));
1623
1624
  return this.util.guildMemberFromRaw(response);
1624
1625
  }
1625
1626
  /** https://discord.com/developers/docs/resources/guild#list-guild-members */
1626
- async getGuildMembers(guildId) {
1627
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembers(guildId));
1627
+ async getGuildMembers(guildID) {
1628
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembers(guildID));
1628
1629
  return response.map((guildMember) => this.util.guildMemberFromRaw(guildMember));
1629
1630
  }
1630
1631
  /** https://discord.com/developers/docs/resources/guild#get-guild-onboarding */
1631
- async getGuildOnboarding(guildId) {
1632
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildOnboarding(guildId));
1632
+ async getGuildOnboarding(guildID) {
1633
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildOnboarding(guildID));
1633
1634
  return {
1634
- guildId: response.guild_id,
1635
+ guildID: response.guild_id,
1635
1636
  prompts: response.prompts.map((prompt) => ({
1636
1637
  id: prompt.id,
1637
1638
  type: prompt.type,
1638
1639
  options: prompt.options.map((promptOption) => ({
1639
1640
  id: promptOption.id,
1640
- channelIds: promptOption.channel_ids,
1641
- roleIds: promptOption.role_ids,
1641
+ channelIDs: promptOption.channel_ids,
1642
+ roleIDs: promptOption.role_ids,
1642
1643
  emoji: promptOption.emoji !== undefined
1643
1644
  ? this.util.emojiFromRaw(promptOption.emoji)
1644
1645
  : undefined,
1645
- emojiId: promptOption.emoji_id,
1646
+ emojiID: promptOption.emoji_id,
1646
1647
  emojiName: promptOption.emoji_name,
1647
1648
  emojiAnimated: promptOption.emoji_animated,
1648
1649
  title: promptOption.title,
@@ -1653,14 +1654,14 @@ class Client extends node_events_1.default {
1653
1654
  required: prompt.required,
1654
1655
  inOnboarding: prompt.in_onboarding,
1655
1656
  })),
1656
- defaultChannelIds: response.default_channel_ids,
1657
+ defaultChannelIDs: response.default_channel_ids,
1657
1658
  enabled: response.enabled,
1658
1659
  mode: response.mode,
1659
1660
  };
1660
1661
  }
1661
1662
  /** https://discord.com/developers/docs/resources/guild#get-guild-preview */
1662
- async getGuildPreview(guildId) {
1663
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPreview(guildId));
1663
+ async getGuildPreview(guildID) {
1664
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPreview(guildID));
1664
1665
  return {
1665
1666
  id: response.id,
1666
1667
  name: response.name,
@@ -1676,8 +1677,8 @@ class Client extends node_events_1.default {
1676
1677
  };
1677
1678
  }
1678
1679
  /** https://discord.com/developers/docs/resources/guild#get-guild-prune-count */
1679
- getGuildPruneCount(guildId, options) {
1680
- return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPrune(guildId), {
1680
+ getGuildPruneCount(guildID, options) {
1681
+ return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPrune(guildID), {
1681
1682
  query: {
1682
1683
  days: options.days,
1683
1684
  include_roles: options.includeRoles,
@@ -1685,13 +1686,13 @@ class Client extends node_events_1.default {
1685
1686
  });
1686
1687
  }
1687
1688
  /** https://discord.com/developers/docs/resources/guild#get-guild-roles */
1688
- async getGuildRoles(guildId) {
1689
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildRoles(guildId));
1689
+ async getGuildRoles(guildID) {
1690
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildRoles(guildID));
1690
1691
  return response.map((role) => this.util.roleFromRaw(role));
1691
1692
  }
1692
1693
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild */
1693
- async getGuildScheduledEvents(guildId, options) {
1694
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvents(guildId), {
1694
+ async getGuildScheduledEvents(guildID, options) {
1695
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvents(guildID), {
1695
1696
  query: {
1696
1697
  with_user_count: options?.withUserCount,
1697
1698
  },
@@ -1699,8 +1700,8 @@ class Client extends node_events_1.default {
1699
1700
  return response.map((guildScheduledEvent) => this.util.guildScheduledEventFromRaw(guildScheduledEvent));
1700
1701
  }
1701
1702
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users */
1702
- async getGuildScheduledEventUsers(guildId, guildScheduledEventId, options) {
1703
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvent(guildId, guildScheduledEventId), {
1703
+ async getGuildScheduledEventUsers(guildID, guildScheduledEventID, options) {
1704
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvent(guildID, guildScheduledEventID), {
1704
1705
  query: {
1705
1706
  limit: options?.limit,
1706
1707
  with_member: options?.withMember,
@@ -1709,7 +1710,7 @@ class Client extends node_events_1.default {
1709
1710
  },
1710
1711
  });
1711
1712
  return response.map((guildScheduledEventUser) => ({
1712
- guildScheduledEventId: guildScheduledEventUser.guild_scheduled_event_id,
1713
+ guildScheduledEventID: guildScheduledEventUser.guild_scheduled_event_id,
1713
1714
  user: this.util.userFromRaw(guildScheduledEventUser.user),
1714
1715
  member: guildScheduledEventUser.member !== undefined
1715
1716
  ? this.util.guildMemberFromRaw(guildScheduledEventUser.member)
@@ -1717,32 +1718,32 @@ class Client extends node_events_1.default {
1717
1718
  }));
1718
1719
  }
1719
1720
  /** https://discord.com/developers/docs/resources/sticker#get-guild-sticker */
1720
- async getGuildSticker(guildId, stickerId) {
1721
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSticker(guildId, stickerId));
1721
+ async getGuildSticker(guildID, stickerID) {
1722
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSticker(guildID, stickerID));
1722
1723
  return this.util.stickerFromRaw(response);
1723
1724
  }
1724
1725
  /** https://discord.com/developers/docs/resources/sticker#list-guild-stickers */
1725
- async getGuildStickers(guildId) {
1726
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildStickers(guildId));
1726
+ async getGuildStickers(guildID) {
1727
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildStickers(guildID));
1727
1728
  return response.map((sticker) => this.util.stickerFromRaw(sticker));
1728
1729
  }
1729
1730
  /** https://discord.com/developers/docs/resources/guild-template#get-guild-template */
1730
- async getGuildTemplate(guildId, code) {
1731
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplate(guildId, code));
1731
+ async getGuildTemplate(guildID, code) {
1732
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplate(guildID, code));
1732
1733
  return this.util.guildTemplateFromRaw(response);
1733
1734
  }
1734
1735
  /** https://discord.com/developers/docs/resources/guild-template#get-guild-templates */
1735
- async getGuildTemplates(guildId) {
1736
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplates(guildId));
1736
+ async getGuildTemplates(guildID) {
1737
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplates(guildID));
1737
1738
  return response.map((guildTemplate) => this.util.guildTemplateFromRaw(guildTemplate));
1738
1739
  }
1739
1740
  /** https://discord.com/developers/docs/resources/guild#get-guild-vanity-url */
1740
- getGuildVanityURL(guildId) {
1741
- return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVanityURL(guildId));
1741
+ getGuildVanityURL(guildID) {
1742
+ return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVanityURL(guildID));
1742
1743
  }
1743
1744
  /** https://discord.com/developers/docs/resources/guild#get-guild-voice-regions */
1744
- async getGuildVoiceRegions(guildId) {
1745
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceRegions(guildId));
1745
+ async getGuildVoiceRegions(guildID) {
1746
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceRegions(guildID));
1746
1747
  return response.map((voiceRegion) => ({
1747
1748
  id: voiceRegion.id,
1748
1749
  name: voiceRegion.name,
@@ -1752,21 +1753,21 @@ class Client extends node_events_1.default {
1752
1753
  }));
1753
1754
  }
1754
1755
  /** https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen */
1755
- async getGuildWelcomeScreen(guildId) {
1756
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWelcomeScreen(guildId));
1756
+ async getGuildWelcomeScreen(guildID) {
1757
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWelcomeScreen(guildID));
1757
1758
  return {
1758
1759
  description: response.description,
1759
1760
  welcomeChannels: response.welcome_channels.map((welcomeScreenChannel) => ({
1760
- channelId: welcomeScreenChannel.channel_id,
1761
+ channelID: welcomeScreenChannel.channel_id,
1761
1762
  description: welcomeScreenChannel.description,
1762
- emojiId: welcomeScreenChannel.emoji_id,
1763
+ emojiID: welcomeScreenChannel.emoji_id,
1763
1764
  emojiName: welcomeScreenChannel.emoji_name,
1764
1765
  })),
1765
1766
  };
1766
1767
  }
1767
1768
  /** https://discord.com/developers/docs/resources/guild#get-guild-widget */
1768
- async getGuildWidget(guildId) {
1769
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetJSON(guildId));
1769
+ async getGuildWidget(guildID) {
1770
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetJSON(guildID));
1770
1771
  return {
1771
1772
  id: response.id,
1772
1773
  name: response.name,
@@ -1777,35 +1778,35 @@ class Client extends node_events_1.default {
1777
1778
  };
1778
1779
  }
1779
1780
  /** https://discord.com/developers/docs/resources/guild#get-guild-widget-image */
1780
- getGuildWidgetImage(guildId, options) {
1781
- return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetImage(guildId), {
1781
+ getGuildWidgetImage(guildID, options) {
1782
+ return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetImage(guildID), {
1782
1783
  query: {
1783
1784
  style: options?.style,
1784
1785
  },
1785
1786
  });
1786
1787
  }
1787
1788
  /** https://discord.com/developers/docs/resources/guild#get-guild-widget-settings */
1788
- async getGuildWidgetSettings(guildId) {
1789
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetSettings(guildId));
1789
+ async getGuildWidgetSettings(guildID) {
1790
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetSettings(guildID));
1790
1791
  return {
1791
1792
  enabled: response.enabled,
1792
- channelId: response.channel_id,
1793
+ channelID: response.channel_id,
1793
1794
  };
1794
1795
  }
1795
1796
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message */
1796
- async getInteractionFollowupMessage(applicationId, interactionToken, messageId, options) {
1797
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationId, interactionToken, messageId), {
1797
+ async getInteractionFollowupMessage(applicationID, interactionToken, messageID, options) {
1798
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationID, interactionToken, messageID), {
1798
1799
  query: {
1799
- thread_id: options?.threadId,
1800
+ thread_id: options?.threadID,
1800
1801
  },
1801
1802
  });
1802
1803
  return this.util.messageFromRaw(response);
1803
1804
  }
1804
1805
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response */
1805
- async getInteractionResponse(applicationId, interactionToken, options) {
1806
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationId, interactionToken), {
1806
+ async getInteractionResponse(applicationID, interactionToken, options) {
1807
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationID, interactionToken), {
1807
1808
  query: {
1808
- thread_id: options?.threadId,
1809
+ thread_id: options?.threadID,
1809
1810
  },
1810
1811
  });
1811
1812
  return this.util.messageFromRaw(response);
@@ -1816,14 +1817,14 @@ class Client extends node_events_1.default {
1816
1817
  query: {
1817
1818
  with_counts: options?.withCounts,
1818
1819
  with_expiration: options?.withExpiration,
1819
- guild_scheduled_event_id: options?.guildScheduledEventId,
1820
+ guild_scheduled_event_id: options?.guildScheduledEventID,
1820
1821
  },
1821
1822
  });
1822
1823
  return this.util.inviteFromRaw(response);
1823
1824
  }
1824
1825
  /** https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads */
1825
- async getJoinedPrivateArchivedThreads(channelId, options) {
1826
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelId, "private", true), {
1826
+ async getJoinedPrivateArchivedThreads(channelID, options) {
1827
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelID, "private", true), {
1827
1828
  query: {
1828
1829
  before: options?.before,
1829
1830
  limit: options?.limit,
@@ -1836,13 +1837,13 @@ class Client extends node_events_1.default {
1836
1837
  };
1837
1838
  }
1838
1839
  /** https://discord.com/developers/docs/resources/channel#get-channel-message */
1839
- async getMessage(channelId, messageId) {
1840
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessage(channelId, messageId));
1840
+ async getMessage(channelID, messageID) {
1841
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessage(channelID, messageID));
1841
1842
  return this.util.messageFromRaw(response);
1842
1843
  }
1843
1844
  /** https://discord.com/developers/docs/resources/channel#get-reactions */
1844
- async getMessageReactions(channelId, messageId, emoji, options) {
1845
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessageAllReactions(channelId, messageId, emoji), {
1845
+ async getMessageReactions(channelID, messageID, emoji, options) {
1846
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessageAllReactions(channelID, messageID, emoji), {
1846
1847
  query: {
1847
1848
  type: options?.type,
1848
1849
  after: options?.after,
@@ -1852,8 +1853,8 @@ class Client extends node_events_1.default {
1852
1853
  return response.map((user) => this.util.userFromRaw(user));
1853
1854
  }
1854
1855
  /** https://discord.com/developers/docs/resources/channel#get-channel-messages */
1855
- async getMessages(channelId, options) {
1856
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessages(channelId), {
1856
+ async getMessages(channelID, options) {
1857
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessages(channelID), {
1857
1858
  query: {
1858
1859
  around: options.around,
1859
1860
  before: options.before,
@@ -1881,13 +1882,13 @@ class Client extends node_events_1.default {
1881
1882
  };
1882
1883
  }
1883
1884
  /** https://discord.com/developers/docs/resources/channel#get-pinned-messages */
1884
- async getPinnedMessages(channelId) {
1885
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelPins(channelId));
1885
+ async getPinnedMessages(channelID) {
1886
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelPins(channelID));
1886
1887
  return response.map((message) => this.util.messageFromRaw(message));
1887
1888
  }
1888
1889
  /** https://discord.com/developers/docs/resources/poll#get-answer-voters */
1889
- async getPollAnswerVoters(channelId, messageId, answerId, options) {
1890
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.pollAnswerVoters(channelId, messageId, answerId), {
1890
+ async getPollAnswerVoters(channelID, messageID, answerID, options) {
1891
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.pollAnswerVoters(channelID, messageID, answerID), {
1891
1892
  query: {
1892
1893
  after: options?.after,
1893
1894
  limit: options?.limit,
@@ -1898,13 +1899,13 @@ class Client extends node_events_1.default {
1898
1899
  };
1899
1900
  }
1900
1901
  /** https://discord.com/developers/docs/monetization/skus#list-skus */
1901
- async getSKUs(applicationId) {
1902
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationSKUs(applicationId));
1902
+ async getSKUs(applicationID) {
1903
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationSKUs(applicationID));
1903
1904
  return response.map((sku) => this.util.skuFromRaw(sku));
1904
1905
  }
1905
1906
  /** https://discord.com/developers/docs/resources/stage-instance#get-stage-instance */
1906
- async getStageInstance(channelId) {
1907
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.stageInstance(channelId));
1907
+ async getStageInstance(channelID) {
1908
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.stageInstance(channelID));
1908
1909
  return this.util.stageInstanceFromRaw(response);
1909
1910
  }
1910
1911
  /** https://discord.com/developers/docs/resources/sticker#list-sticker-packs */
@@ -1915,23 +1916,23 @@ class Client extends node_events_1.default {
1915
1916
  id: stickerPack.id,
1916
1917
  stickers: stickerPack.stickers.map((sticker) => this.util.stickerFromRaw(sticker)),
1917
1918
  name: stickerPack.name,
1918
- skuId: stickerPack.sku_id,
1919
- coverStickerId: stickerPack.cover_sticker_id,
1919
+ skuID: stickerPack.sku_id,
1920
+ coverStickerID: stickerPack.cover_sticker_id,
1920
1921
  description: stickerPack.description,
1921
- bannerAssetId: stickerPack.banner_asset_id,
1922
+ bannerAssetID: stickerPack.banner_asset_id,
1922
1923
  })),
1923
1924
  };
1924
1925
  }
1925
1926
  /** https://discord.com/developers/docs/resources/channel#get-thread-member */
1926
- async getThreadMember(channelId, userId, options) {
1927
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelId, userId), {
1927
+ async getThreadMember(channelID, userID, options) {
1928
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelID, userID), {
1928
1929
  query: {
1929
1930
  with_member: options?.withMember,
1930
1931
  },
1931
1932
  });
1932
1933
  return {
1933
1934
  id: response.id,
1934
- userId: response.user_id,
1935
+ userID: response.user_id,
1935
1936
  joinTimestamp: response.join_timestamp,
1936
1937
  flags: response.flags,
1937
1938
  member: response.member !== undefined
@@ -1940,8 +1941,8 @@ class Client extends node_events_1.default {
1940
1941
  };
1941
1942
  }
1942
1943
  /** https://discord.com/developers/docs/resources/channel#list-thread-members */
1943
- async getThreadMembers(channelId, options) {
1944
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelId), {
1944
+ async getThreadMembers(channelID, options) {
1945
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelID), {
1945
1946
  query: {
1946
1947
  with_member: options?.withMember,
1947
1948
  after: options?.after,
@@ -1951,8 +1952,8 @@ class Client extends node_events_1.default {
1951
1952
  return response.map((threadMember) => this.util.threadMemberFromRaw(threadMember));
1952
1953
  }
1953
1954
  /** https://discord.com/developers/docs/resources/user#get-user */
1954
- async getUser(userId) {
1955
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.user(userId));
1955
+ async getUser(userID) {
1956
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.user(userID));
1956
1957
  return this.util.userFromRaw(response);
1957
1958
  }
1958
1959
  /** https://discord.com/developers/docs/resources/voice#list-voice-regions */
@@ -1967,49 +1968,49 @@ class Client extends node_events_1.default {
1967
1968
  }));
1968
1969
  }
1969
1970
  /** https://discord.com/developers/docs/resources/webhook#get-webhook-message */
1970
- async getWebhookMessage(webhookId, webhookToken, messageId, options) {
1971
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(webhookId, webhookToken, messageId), {
1971
+ async getWebhookMessage(webhookID, webhookToken, messageID, options) {
1972
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(webhookID, webhookToken, messageID), {
1972
1973
  query: {
1973
- thread_id: options?.threadId,
1974
+ thread_id: options?.threadID,
1974
1975
  },
1975
1976
  });
1976
1977
  return this.util.messageFromRaw(response);
1977
1978
  }
1978
1979
  /** https://discord.com/developers/docs/resources/webhook#get-guild-webhooks */
1979
- async getWebhooks(guildId) {
1980
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWebhooks(guildId));
1980
+ async getWebhooks(guildID) {
1981
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWebhooks(guildID));
1981
1982
  return response.map((webhook) => this.util.webhookFromRaw(webhook));
1982
1983
  }
1983
1984
  /** https://discord.com/developers/docs/resources/channel#join-thread */
1984
- joinThread(channelId) {
1985
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelId, "@me"));
1985
+ joinThread(channelID) {
1986
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelID, "@me"));
1986
1987
  }
1987
1988
  /** https://discord.com/developers/docs/topics/gateway-events#update-voice-state */
1988
- joinVoiceChannel(guildId, channelId, options) {
1989
- this.shards.get(this.guildShardMap[guildId])?.ws.send(JSON.stringify({
1989
+ joinVoiceChannel(guildID, channelID, options) {
1990
+ this.shards.get(this.guildShardMap[guildID])?.ws.send(JSON.stringify({
1990
1991
  op: constants_1.GatewayOPCodes.VoiceStateUpdate,
1991
1992
  d: {
1992
- guild_id: guildId,
1993
- channel_id: channelId,
1993
+ guild_id: guildID,
1994
+ channel_id: channelID,
1994
1995
  self_mute: !!options?.selfMute,
1995
1996
  self_deaf: !!options?.selfDeaf,
1996
1997
  },
1997
1998
  }));
1998
1999
  }
1999
2000
  /** https://discord.com/developers/docs/resources/user#leave-guild */
2000
- leaveGuild(guildId) {
2001
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.userGuild(guildId));
2001
+ leaveGuild(guildID) {
2002
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.userGuild(guildID));
2002
2003
  }
2003
2004
  /** https://discord.com/developers/docs/resources/channel#leave-thread */
2004
- leaveThread(channelId) {
2005
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelId, "@me"));
2005
+ leaveThread(channelID) {
2006
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelID, "@me"));
2006
2007
  }
2007
2008
  /** https://discord.com/developers/docs/topics/gateway-events#update-voice-state */
2008
- leaveVoiceChannel(guildId) {
2009
- this.shards.get(this.guildShardMap[guildId])?.ws.send(JSON.stringify({
2009
+ leaveVoiceChannel(guildID) {
2010
+ this.shards.get(this.guildShardMap[guildID])?.ws.send(JSON.stringify({
2010
2011
  op: constants_1.GatewayOPCodes.VoiceStateUpdate,
2011
2012
  d: {
2012
- guild_id: guildId,
2013
+ guild_id: guildID,
2013
2014
  channel_id: null,
2014
2015
  self_mute: false,
2015
2016
  self_deaf: false,
@@ -2017,40 +2018,40 @@ class Client extends node_events_1.default {
2017
2018
  }));
2018
2019
  }
2019
2020
  /** https://discord.com/developers/docs/resources/channel#pin-message */
2020
- pinMessage(channelId, messageId, reason) {
2021
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPin(channelId, messageId), {
2021
+ pinMessage(channelID, messageID, reason) {
2022
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPin(channelID, messageID), {
2022
2023
  reason,
2023
2024
  });
2024
2025
  }
2025
2026
  /** https://discord.com/developers/docs/resources/guild#remove-guild-ban */
2026
- removeBan(guildId, userId, reason) {
2027
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildBan(guildId, userId), {
2027
+ removeBan(guildID, userID, reason) {
2028
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildBan(guildID, userID), {
2028
2029
  reason,
2029
2030
  });
2030
2031
  }
2031
2032
  /** https://discord.com/developers/docs/resources/channel#group-dm-remove-recipient */
2032
- removeGroupRecipient(channelId, userId) {
2033
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelRecipient(channelId, userId));
2033
+ removeGroupRecipient(channelID, userID) {
2034
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelRecipient(channelID, userID));
2034
2035
  }
2035
2036
  /** https://discord.com/developers/docs/resources/guild#remove-guild-member */
2036
- removeGuildMember(guildId, userId, reason) {
2037
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMember(guildId, userId), {
2037
+ removeGuildMember(guildID, userID, reason) {
2038
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMember(guildID, userID), {
2038
2039
  reason,
2039
2040
  });
2040
2041
  }
2041
2042
  /** https://discord.com/developers/docs/resources/guild#remove-guild-member-role */
2042
- removeGuildMemberRole(guildId, userId, roleId, reason) {
2043
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMemberRole(guildId, userId, roleId), {
2043
+ removeGuildMemberRole(guildID, userID, roleID, reason) {
2044
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMemberRole(guildID, userID, roleID), {
2044
2045
  reason,
2045
2046
  });
2046
2047
  }
2047
2048
  /** https://discord.com/developers/docs/resources/channel#remove-thread-member */
2048
- removeThreadMember(channelId, userId) {
2049
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelId, userId));
2049
+ removeThreadMember(channelID, userID) {
2050
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelID, userID));
2050
2051
  }
2051
2052
  /** https://discord.com/developers/docs/resources/guild#search-guild-members */
2052
- async searchGuildMembers(guildId, options) {
2053
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembersSearch(guildId), {
2053
+ async searchGuildMembers(guildID, options) {
2054
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembersSearch(guildID), {
2054
2055
  query: {
2055
2056
  query: options.query,
2056
2057
  limit: options.limit,
@@ -2061,20 +2062,20 @@ class Client extends node_events_1.default {
2061
2062
  /** https://discord.com/developers/docs/topics/gateway-events#update-presence */
2062
2063
  setPresence(options) {
2063
2064
  for (const [id, shard] of this.shards)
2064
- shard.setPresence(options);
2065
+ shard.updatePresence(options);
2065
2066
  }
2066
2067
  /** https://discord.com/developers/docs/resources/guild-template#sync-guild-template */
2067
- async syncGuildTemplate(guildId, code) {
2068
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildTemplate(guildId, code));
2068
+ async syncGuildTemplate(guildID, code) {
2069
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildTemplate(guildID, code));
2069
2070
  return this.util.guildTemplateFromRaw(response);
2070
2071
  }
2071
2072
  /** https://discord.com/developers/docs/resources/channel#trigger-typing-indicator */
2072
- triggerTypingIndicator(channelId) {
2073
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelTyping(channelId));
2073
+ triggerTypingIndicator(channelID) {
2074
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelTyping(channelID));
2074
2075
  }
2075
2076
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
2076
- async updateApplicationRoleConnectionMetadataRecords(applicationId) {
2077
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationId));
2077
+ async updateApplicationRoleConnectionMetadataRecords(applicationID) {
2078
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationID));
2078
2079
  return response.map((applicationRoleConnectionMetadata) => ({
2079
2080
  type: applicationRoleConnectionMetadata.type,
2080
2081
  key: applicationRoleConnectionMetadata.key,
@@ -2107,8 +2108,8 @@ class Client extends node_events_1.default {
2107
2108
  };
2108
2109
  }
2109
2110
  /** https://discord.com/developers/docs/resources/channel#unpin-message */
2110
- unpinMessage(channelId, messageId, reason) {
2111
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPin(channelId, messageId), {
2111
+ unpinMessage(channelID, messageID, reason) {
2112
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPin(channelID, messageID), {
2112
2113
  reason,
2113
2114
  });
2114
2115
  }