disgroove 2.2.7 → 3.0.0-dev.a714eda

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 (69) hide show
  1. package/dist/lib/Client.d.ts +252 -251
  2. package/dist/lib/Client.js +472 -471
  3. package/dist/lib/gateway/Shard.d.ts +5 -3
  4. package/dist/lib/gateway/Shard.js +169 -121
  5. package/dist/lib/index.d.ts +4 -0
  6. package/dist/lib/index.js +4 -0
  7. package/dist/lib/rest/Endpoints.d.ts +94 -94
  8. package/dist/lib/rest/Endpoints.js +104 -104
  9. package/dist/lib/transformers/ApplicationCommands.js +4 -4
  10. package/dist/lib/transformers/Applications.js +14 -6
  11. package/dist/lib/transformers/AuditLogs.js +10 -10
  12. package/dist/lib/transformers/AutoModeration.js +6 -6
  13. package/dist/lib/transformers/Channels.js +16 -16
  14. package/dist/lib/transformers/Components.js +16 -16
  15. package/dist/lib/transformers/Entitlements.d.ts +2 -2
  16. package/dist/lib/transformers/Entitlements.js +16 -16
  17. package/dist/lib/transformers/GuildScheduledEvents.js +8 -8
  18. package/dist/lib/transformers/GuildTemplates.js +4 -4
  19. package/dist/lib/transformers/Guilds.js +28 -28
  20. package/dist/lib/transformers/Interactions.js +44 -44
  21. package/dist/lib/transformers/Lobbies.js +2 -2
  22. package/dist/lib/transformers/Messages.js +16 -16
  23. package/dist/lib/transformers/Polls.js +2 -2
  24. package/dist/lib/transformers/Presences.js +6 -6
  25. package/dist/lib/transformers/Roles.js +6 -6
  26. package/dist/lib/transformers/SKUs.js +2 -2
  27. package/dist/lib/transformers/Soundboards.js +6 -6
  28. package/dist/lib/transformers/StageInstances.js +6 -6
  29. package/dist/lib/transformers/Stickers.js +3 -3
  30. package/dist/lib/transformers/Subscriptions.js +8 -8
  31. package/dist/lib/transformers/Teams.js +4 -4
  32. package/dist/lib/transformers/Users.js +6 -6
  33. package/dist/lib/transformers/Voice.js +8 -8
  34. package/dist/lib/transformers/Webhooks.js +6 -6
  35. package/dist/lib/types/application-command.d.ts +9 -4
  36. package/dist/lib/types/application-role-connection-metadata.d.ts +1 -0
  37. package/dist/lib/types/application.d.ts +14 -9
  38. package/dist/lib/types/audit-log.d.ts +9 -5
  39. package/dist/lib/types/auto-moderation.d.ts +7 -3
  40. package/dist/lib/types/channel.d.ts +17 -23
  41. package/dist/lib/types/common.d.ts +2 -0
  42. package/dist/lib/types/components.d.ts +43 -15
  43. package/dist/lib/types/emoji.d.ts +1 -0
  44. package/dist/lib/types/entitlements.d.ts +5 -4
  45. package/dist/lib/types/gateway-events.d.ts +181 -130
  46. package/dist/lib/types/guild-scheduled-event.d.ts +10 -5
  47. package/dist/lib/types/guild-template.d.ts +3 -2
  48. package/dist/lib/types/guild.d.ts +33 -17
  49. package/dist/lib/types/interaction.d.ts +23 -10
  50. package/dist/lib/types/invite.d.ts +3 -0
  51. package/dist/lib/types/lobby.d.ts +3 -1
  52. package/dist/lib/types/message.d.ts +27 -13
  53. package/dist/lib/types/poll.d.ts +7 -1
  54. package/dist/lib/types/role.d.ts +6 -3
  55. package/dist/lib/types/sku.d.ts +2 -1
  56. package/dist/lib/types/soundboard.d.ts +4 -3
  57. package/dist/lib/types/stage-instance.d.ts +4 -3
  58. package/dist/lib/types/sticker.d.ts +8 -5
  59. package/dist/lib/types/subscription.d.ts +6 -5
  60. package/dist/lib/types/team.d.ts +4 -2
  61. package/dist/lib/types/user.d.ts +10 -3
  62. package/dist/lib/types/voice.d.ts +6 -4
  63. package/dist/lib/types/webhook.d.ts +4 -3
  64. package/dist/lib/utils/CDN.d.ts +22 -22
  65. package/dist/lib/utils/CDN.js +22 -22
  66. package/dist/lib/utils/formatters.d.ts +6 -6
  67. package/dist/lib/utils/formatters.js +18 -18
  68. package/dist/package.json +1 -1
  69. package/package.json +1 -1
@@ -49,8 +49,8 @@ class Client extends node_events_1.default {
49
49
  this.ws = options?.ws;
50
50
  }
51
51
  /** https://discord.com/developers/docs/resources/channel#group-dm-add-recipient */
52
- addGroupRecipient(channelID, userID, options) {
53
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelRecipient(channelID, userID), {
52
+ addGroupRecipient(channelId, userId, options) {
53
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelRecipient(channelId, userId), {
54
54
  json: {
55
55
  access_token: options.accessToken,
56
56
  nick: options.nick,
@@ -58,8 +58,8 @@ class Client extends node_events_1.default {
58
58
  });
59
59
  }
60
60
  /** https://discord.com/developers/docs/resources/guild#add-guild-member */
61
- async addGuildMember(guildID, userID, options) {
62
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMember(guildID, userID), {
61
+ async addGuildMember(guildId, userId, options) {
62
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMember(guildId, userId), {
63
63
  json: {
64
64
  access_token: options.accessToken,
65
65
  nick: options.nick,
@@ -71,25 +71,25 @@ class Client extends node_events_1.default {
71
71
  return response !== null ? transformers_1.Guilds.guildMemberFromRaw(response) : null;
72
72
  }
73
73
  /** https://discord.com/developers/docs/resources/guild#add-guild-member-role */
74
- addGuildMemberRole(guildID, userID, roleID, reason) {
75
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMemberRole(guildID, userID, roleID), {
74
+ addGuildMemberRole(guildId, userId, roleId, reason) {
75
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildMemberRole(guildId, userId, roleId), {
76
76
  reason,
77
77
  });
78
78
  }
79
79
  /** https://discord.com/developers/docs/resources/lobby#add-a-member-to-a-lobby */
80
- async addLobbyMember(lobbyID, userID, options) {
81
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.lobbyMember(lobbyID, userID), {
80
+ async addLobbyMember(lobbyId, userId, options) {
81
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.lobbyMember(lobbyId, userId), {
82
82
  json: options,
83
83
  });
84
84
  return transformers_1.Lobbies.lobbyMemberFromRaw(response);
85
85
  }
86
86
  /** https://discord.com/developers/docs/resources/channel#add-thread-member */
87
- addThreadMember(channelID, userID) {
88
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelID, userID));
87
+ addThreadMember(channelId, userId) {
88
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelId, userId));
89
89
  }
90
90
  /** https://discord.com/developers/docs/resources/guild#begin-guild-prune */
91
- beginGuildPrune(guildID, options, reason) {
92
- return this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildPrune(guildID), {
91
+ beginGuildPrune(guildId, options, reason) {
92
+ return this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildPrune(guildId), {
93
93
  json: {
94
94
  days: options.days,
95
95
  compute_prune_count: options.computePruneCount,
@@ -99,10 +99,10 @@ class Client extends node_events_1.default {
99
99
  });
100
100
  }
101
101
  /** https://discord.com/developers/docs/resources/guild#bulk-guild-ban */
102
- async bulkGuildBan(guildID, options, reason) {
103
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildBulkBan(guildID), {
102
+ async bulkGuildBan(guildId, options, reason) {
103
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildBulkBan(guildId), {
104
104
  json: {
105
- user_ids: options.userIDs,
105
+ user_ids: options.userIds,
106
106
  delete_message_seconds: options.deleteMessageSeconds,
107
107
  },
108
108
  reason,
@@ -113,8 +113,8 @@ class Client extends node_events_1.default {
113
113
  };
114
114
  }
115
115
  /** https://discord.com/developers/docs/resources/message#bulk-delete-messages */
116
- bulkDeleteMessages(channelID, options, reason) {
117
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelBulkDelete(channelID), {
116
+ bulkDeleteMessages(channelId, options, reason) {
117
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelBulkDelete(channelId), {
118
118
  json: {
119
119
  messages: options?.messages,
120
120
  },
@@ -122,8 +122,8 @@ class Client extends node_events_1.default {
122
122
  });
123
123
  }
124
124
  /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
125
- async bulkEditGlobalApplicationCommands(applicationID, commands) {
126
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommands(applicationID), {
125
+ async bulkEditGlobalApplicationCommands(applicationId, commands) {
126
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommands(applicationId), {
127
127
  json: commands.map((command) => ({
128
128
  id: command.id,
129
129
  name: command.name,
@@ -141,8 +141,8 @@ class Client extends node_events_1.default {
141
141
  return response.map((c) => transformers_1.ApplicationCommands.applicationCommandFromRaw(c));
142
142
  }
143
143
  /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
144
- async bulkEditGuildApplicationCommands(applicationID, guildID, commands) {
145
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationGuildCommands(applicationID, guildID), {
144
+ async bulkEditGuildApplicationCommands(applicationId, guildId, commands) {
145
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationGuildCommands(applicationId, guildId), {
146
146
  json: commands.map((command) => ({
147
147
  id: command.id,
148
148
  name: command.name,
@@ -165,15 +165,15 @@ class Client extends node_events_1.default {
165
165
  : this.shardsCount;
166
166
  for (let i = 0; i < this.shardsCount; i++)
167
167
  this.shards.set(i, new gateway_1.Shard(i, this));
168
- this.shards.forEach((shard) => shard.connect());
168
+ this.shards.forEach((shard) => shard.connect(false));
169
169
  }
170
170
  /** https://discord.com/developers/docs/resources/entitlement#consume-an-entitlement */
171
- consumeEntitlement(applicationID, entitlementID) {
172
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlementConsume(applicationID, entitlementID));
171
+ consumeEntitlement(applicationId, entitlementId) {
172
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlementConsume(applicationId, entitlementId));
173
173
  }
174
174
  /** https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule */
175
- async createAutoModerationRule(guildID, options, reason) {
176
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildAutoModerationRules(guildID), {
175
+ async createAutoModerationRule(guildId, options, reason) {
176
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildAutoModerationRules(guildId), {
177
177
  json: {
178
178
  name: options.name,
179
179
  event_type: options.eventType,
@@ -191,15 +191,15 @@ class Client extends node_events_1.default {
191
191
  return transformers_1.AutoModeration.autoModerationRuleFromRaw(response);
192
192
  }
193
193
  /** https://discord.com/developers/docs/resources/emoji#create-application-emoji */
194
- async createApplicationEmoji(applicationID, options) {
195
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEmojis(applicationID), {
194
+ async createApplicationEmoji(applicationId, options) {
195
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEmojis(applicationId), {
196
196
  json: options,
197
197
  });
198
198
  return transformers_1.Emojis.emojiFromRaw(response);
199
199
  }
200
200
  /** https://discord.com/developers/docs/resources/guild#create-guild-channel */
201
- async createChannel(guildID, options, reason) {
202
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildChannels(guildID), {
201
+ async createChannel(guildId, options, reason) {
202
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildChannels(guildId), {
203
203
  json: {
204
204
  name: options.name,
205
205
  type: options.type,
@@ -209,7 +209,7 @@ class Client extends node_events_1.default {
209
209
  rate_limit_per_user: options.rateLimitPerUser,
210
210
  position: options.position,
211
211
  permission_overwrites: options.permissionOverwrites,
212
- parent_id: options.parentID,
212
+ parent_id: options.parentId,
213
213
  nsfw: options.nsfw,
214
214
  rtc_region: options.rtcRegion,
215
215
  video_quality_mode: options.videoQualityMode,
@@ -217,7 +217,7 @@ class Client extends node_events_1.default {
217
217
  default_reaction_emoji: options.defaultReactionEmoji !== undefined
218
218
  ? options.defaultReactionEmoji !== null
219
219
  ? {
220
- emoji_id: options.defaultReactionEmoji.emojiID,
220
+ emoji_id: options.defaultReactionEmoji.emojiId,
221
221
  emoji_name: options.defaultReactionEmoji.emojiName,
222
222
  }
223
223
  : null
@@ -232,24 +232,24 @@ class Client extends node_events_1.default {
232
232
  return transformers_1.Channels.channelFromRaw(response);
233
233
  }
234
234
  /** https://discord.com/developers/docs/resources/channel#create-channel-invite */
235
- async createChannelInvite(channelID, options, reason) {
236
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelInvites(channelID), {
235
+ async createChannelInvite(channelId, options, reason) {
236
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelInvites(channelId), {
237
237
  json: {
238
238
  max_age: options.maxAge,
239
239
  max_uses: options.maxUses,
240
240
  temporary: options.temporary,
241
241
  unique: options.unique,
242
242
  target_type: options.targetType,
243
- target_user_id: options.targetUserID,
244
- target_application_id: options.targetApplicationID,
243
+ target_user_id: options.targetUserId,
244
+ target_application_id: options.targetApplicationId,
245
245
  },
246
246
  reason,
247
247
  });
248
248
  return transformers_1.Invites.inviteFromRaw(response);
249
249
  }
250
250
  /** https://discord.com/developers/docs/resources/webhook#create-webhook */
251
- async createChannelWebhook(channelID, options, reason) {
252
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelWebhooks(channelID), {
251
+ async createChannelWebhook(channelId, options, reason) {
252
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelWebhooks(channelId), {
253
253
  json: {
254
254
  name: options.name,
255
255
  avatar: options.avatar,
@@ -262,14 +262,14 @@ class Client extends node_events_1.default {
262
262
  async createDM(options) {
263
263
  const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.userChannels(), {
264
264
  json: {
265
- recipient_id: options.recipientID,
265
+ recipient_id: options.recipientId,
266
266
  },
267
267
  });
268
268
  return transformers_1.Channels.channelFromRaw(response);
269
269
  }
270
270
  /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
271
- async createGlobalApplicationCommand(applicationID, options) {
272
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationCommands(applicationID), {
271
+ async createGlobalApplicationCommand(applicationId, options) {
272
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationCommands(applicationId), {
273
273
  json: {
274
274
  name: options.name,
275
275
  name_localizations: options.nameLocalizations,
@@ -296,8 +296,8 @@ class Client extends node_events_1.default {
296
296
  return transformers_1.Channels.channelFromRaw(response);
297
297
  }
298
298
  /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
299
- async createGuildApplicationCommand(applicationID, guildID, options) {
300
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationGuildCommands(applicationID, guildID), {
299
+ async createGuildApplicationCommand(applicationId, guildId, options) {
300
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationGuildCommands(applicationId, guildId), {
301
301
  json: {
302
302
  name: options.name,
303
303
  name_localizations: options.nameLocalizations,
@@ -312,8 +312,8 @@ class Client extends node_events_1.default {
312
312
  return transformers_1.ApplicationCommands.applicationCommandFromRaw(response);
313
313
  }
314
314
  /** https://discord.com/developers/docs/resources/guild#create-guild-ban */
315
- createGuildBan(guildID, userID, options, reason) {
316
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildBan(guildID, userID), {
315
+ createGuildBan(guildId, userId, options, reason) {
316
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildBan(guildId, userId), {
317
317
  json: {
318
318
  delete_message_days: options?.deleteMessageDays,
319
319
  delete_message_seconds: options?.deleteMessageSeconds,
@@ -322,8 +322,8 @@ class Client extends node_events_1.default {
322
322
  });
323
323
  }
324
324
  /** https://discord.com/developers/docs/resources/emoji#create-guild-emoji */
325
- async createGuildEmoji(guildID, options, reason) {
326
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildEmojis(guildID), {
325
+ async createGuildEmoji(guildId, options, reason) {
326
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildEmojis(guildId), {
327
327
  json: {
328
328
  name: options.name,
329
329
  image: options.image,
@@ -334,8 +334,8 @@ class Client extends node_events_1.default {
334
334
  return transformers_1.Emojis.emojiFromRaw(response);
335
335
  }
336
336
  /** https://discord.com/developers/docs/resources/guild#create-guild-role */
337
- async createGuildRole(guildID, options, reason) {
338
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildRoles(guildID), {
337
+ async createGuildRole(guildId, options, reason) {
338
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildRoles(guildId), {
339
339
  json: {
340
340
  name: options.name,
341
341
  permissions: options.permissions,
@@ -355,10 +355,10 @@ class Client extends node_events_1.default {
355
355
  return transformers_1.Roles.roleFromRaw(response);
356
356
  }
357
357
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event */
358
- async createGuildScheduledEvent(guildID, options, reason) {
359
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildScheduledEvents(guildID), {
358
+ async createGuildScheduledEvent(guildId, options, reason) {
359
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildScheduledEvents(guildId), {
360
360
  json: {
361
- channel_id: options.channelID,
361
+ channel_id: options.channelId,
362
362
  entity_metadata: options.entityMetadata,
363
363
  name: options.name,
364
364
  privacy_level: options.privacyLevel,
@@ -376,26 +376,26 @@ class Client extends node_events_1.default {
376
376
  return transformers_1.GuildScheduledEvents.guildScheduledEventFromRaw(response);
377
377
  }
378
378
  /** https://discord.com/developers/docs/resources/sticker#create-guild-sticker */
379
- async createGuildSticker(guildID, options, reason) {
379
+ async createGuildSticker(guildId, options, reason) {
380
380
  const formData = new FormData();
381
381
  formData.set("name", options.name);
382
382
  formData.set("description", options.description);
383
383
  formData.set("tags", options.tags);
384
384
  formData.set("file", new Blob([options.file.contents]), options.file.name);
385
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildStickers(guildID), {
385
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildStickers(guildId), {
386
386
  form: formData,
387
387
  reason,
388
388
  });
389
389
  return transformers_1.Stickers.stickerFromRaw(response);
390
390
  }
391
391
  /** https://discord.com/developers/docs/resources/soundboard#create-guild-soundboard-sound */
392
- async createGuildSoundboardSound(guildID, options, reason) {
393
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSounds(guildID), {
392
+ async createGuildSoundboardSound(guildId, options, reason) {
393
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSounds(guildId), {
394
394
  json: {
395
395
  name: options.name,
396
396
  sound: options.sound,
397
397
  volume: options.volume,
398
- emoji_id: options.emojiID,
398
+ emoji_id: options.emojiId,
399
399
  emoji_name: options.emojiName,
400
400
  },
401
401
  reason,
@@ -403,8 +403,8 @@ class Client extends node_events_1.default {
403
403
  return transformers_1.Soundboards.soundboardSoundFromRaw(response);
404
404
  }
405
405
  /** https://discord.com/developers/docs/resources/guild-template#create-guild-template */
406
- async createGuildTemplate(guildID, options) {
407
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildTemplates(guildID), {
406
+ async createGuildTemplate(guildId, options) {
407
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildTemplates(guildId), {
408
408
  json: {
409
409
  name: options.name,
410
410
  description: options.description,
@@ -413,8 +413,8 @@ class Client extends node_events_1.default {
413
413
  return transformers_1.GuildTemplates.guildTemplateFromRaw(response);
414
414
  }
415
415
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message */
416
- async createInteractionFollowupMessage(applicationID, interactionToken, options) {
417
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(applicationID, interactionToken), {
416
+ async createInteractionFollowupMessage(applicationId, interactionToken, options) {
417
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(applicationId, interactionToken), {
418
418
  json: {
419
419
  content: options.content,
420
420
  tts: options.tts,
@@ -439,7 +439,7 @@ class Client extends node_events_1.default {
439
439
  ? {
440
440
  question: options.poll.question,
441
441
  answers: options.poll.answers.map((answer) => ({
442
- answer_id: answer.answerID,
442
+ answer_id: answer.answerId,
443
443
  poll_media: answer.pollMedia,
444
444
  })),
445
445
  duration: options.poll.duration,
@@ -453,7 +453,7 @@ class Client extends node_events_1.default {
453
453
  return transformers_1.Messages.messageFromRaw(response);
454
454
  }
455
455
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response */
456
- async createInteractionResponse(interactionID, interactionToken, options) {
456
+ async createInteractionResponse(interactionId, interactionToken, options) {
457
457
  let json;
458
458
  let files;
459
459
  switch (options.type) {
@@ -501,7 +501,7 @@ class Client extends node_events_1.default {
501
501
  ? {
502
502
  question: options.data.poll.question,
503
503
  answers: options.data.poll.answers.map((answer) => ({
504
- answer_id: answer.answerID,
504
+ answer_id: answer.answerId,
505
505
  poll_media: answer.pollMedia,
506
506
  })),
507
507
  duration: options.data.poll.duration,
@@ -544,7 +544,7 @@ class Client extends node_events_1.default {
544
544
  json = {
545
545
  type: options.type,
546
546
  data: {
547
- custom_id: options.data?.customID,
547
+ custom_id: options.data?.customId,
548
548
  components: options.data?.components !== undefined
549
549
  ? options.data?.components.map((component) => {
550
550
  switch (component.type) {
@@ -573,7 +573,7 @@ class Client extends node_events_1.default {
573
573
  break;
574
574
  }
575
575
  if (options.withResponse) {
576
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionID, interactionToken), {
576
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionId, interactionToken), {
577
577
  json,
578
578
  query: {
579
579
  with_response: options.withResponse,
@@ -583,7 +583,7 @@ class Client extends node_events_1.default {
583
583
  return transformers_1.Interactions.interactionCallbackResponseFromRaw(response);
584
584
  }
585
585
  else {
586
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionID, interactionToken), {
586
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.interactionCallback(interactionId, interactionToken), {
587
587
  json,
588
588
  query: {
589
589
  with_response: options.withResponse,
@@ -604,8 +604,8 @@ class Client extends node_events_1.default {
604
604
  return transformers_1.Lobbies.lobbyFromRaw(response);
605
605
  }
606
606
  /** https://discord.com/developers/docs/resources/message#create-message */
607
- async createMessage(channelID, options) {
608
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessages(channelID), {
607
+ async createMessage(channelId, options) {
608
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessages(channelId), {
609
609
  json: {
610
610
  content: options.content,
611
611
  nonce: options.nonce,
@@ -621,16 +621,16 @@ class Client extends node_events_1.default {
621
621
  : undefined,
622
622
  message_reference: options.messageReference !== undefined
623
623
  ? {
624
- message_id: options.messageReference.messageID,
625
- channel_id: options.messageReference.channelID,
626
- guild_id: options.messageReference.guildID,
624
+ message_id: options.messageReference.messageId,
625
+ channel_id: options.messageReference.channelId,
626
+ guild_id: options.messageReference.guildId,
627
627
  fail_if_not_exists: options.messageReference.failIfNotExists,
628
628
  }
629
629
  : undefined,
630
630
  components: options.components !== undefined
631
631
  ? transformers_1.Messages.componentsToRaw(options.components)
632
632
  : undefined,
633
- stickers_ids: options.stickersIDs,
633
+ stickers_ids: options.stickersIds,
634
634
  attachments: options.attachments,
635
635
  flags: options.flags,
636
636
  enforce_nonce: options.enforceNonce,
@@ -638,7 +638,7 @@ class Client extends node_events_1.default {
638
638
  ? {
639
639
  question: options.poll.question,
640
640
  answers: options.poll.answers.map((answer) => ({
641
- answer_id: answer.answerID,
641
+ answer_id: answer.answerId,
642
642
  poll_media: answer.pollMedia,
643
643
  })),
644
644
  duration: options.poll.duration,
@@ -652,37 +652,37 @@ class Client extends node_events_1.default {
652
652
  return transformers_1.Messages.messageFromRaw(response);
653
653
  }
654
654
  /** https://discord.com/developers/docs/resources/message#create-reaction */
655
- createMessageReaction(channelID, messageID, emoji) {
656
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelMessageReaction(channelID, messageID, emoji));
655
+ createMessageReaction(channelId, messageId, emoji) {
656
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelMessageReaction(channelId, messageId, emoji));
657
657
  }
658
658
  /** https://discord.com/developers/docs/resources/stage-instance#create-stage-instance */
659
659
  async createStageInstance(options, reason) {
660
660
  const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.stageInstances(), {
661
661
  json: {
662
- channel_id: options.channelID,
662
+ channel_id: options.channelId,
663
663
  topic: options.topic,
664
664
  privacy_level: options.privacyLevel,
665
665
  send_start_notifications: options.sendStartNotifications,
666
- guild_scheduled_event_id: options.guildScheduledEventID,
666
+ guild_scheduled_event_id: options.guildScheduledEventId,
667
667
  },
668
668
  reason,
669
669
  });
670
670
  return transformers_1.StageInstances.stageInstanceFromRaw(response);
671
671
  }
672
672
  /** https://discord.com/developers/docs/resources/entitlement#create-test-entitlement */
673
- async createTestEntitlement(applicationID, options) {
674
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlements(applicationID), {
673
+ async createTestEntitlement(applicationId, options) {
674
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationEntitlements(applicationId), {
675
675
  json: {
676
- sku_id: options.skuID,
677
- owner_id: options.ownerID,
676
+ sku_id: options.skuId,
677
+ owner_id: options.ownerId,
678
678
  owner_type: options.ownerType,
679
679
  },
680
680
  });
681
681
  return transformers_1.Entitlements.testEntitlementFromRaw(response);
682
682
  }
683
683
  /** https://discord.com/developers/docs/resources/channel#start-thread-in-forum-or-media-channel */
684
- async createThread(channelID, options, reason) {
685
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelID), {
684
+ async createThread(channelId, options, reason) {
685
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelId), {
686
686
  json: {
687
687
  name: options.name,
688
688
  auto_archive_duration: options.autoArchiveDuration,
@@ -698,7 +698,7 @@ class Client extends node_events_1.default {
698
698
  replied_user: options.message.allowedMentions.repliedUser,
699
699
  }
700
700
  : undefined,
701
- sticker_ids: options.message.stickerIDs,
701
+ sticker_ids: options.message.stickerIds,
702
702
  attachments: options.message.attachments,
703
703
  flags: options.message.flags,
704
704
  },
@@ -710,8 +710,8 @@ class Client extends node_events_1.default {
710
710
  return transformers_1.Channels.channelFromRaw(response);
711
711
  }
712
712
  /** https://discord.com/developers/docs/resources/channel#start-thread-from-message */
713
- async createThreadFromMessage(channelID, messageID, options, reason) {
714
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelID, messageID), {
713
+ async createThreadFromMessage(channelId, messageId, options, reason) {
714
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelId, messageId), {
715
715
  json: {
716
716
  name: options.name,
717
717
  auto_archive_duration: options.autoArchiveDuration,
@@ -722,8 +722,8 @@ class Client extends node_events_1.default {
722
722
  return transformers_1.Channels.channelFromRaw(response);
723
723
  }
724
724
  /** https://discord.com/developers/docs/resources/channel#start-thread-without-message */
725
- async createThreadWithoutMessage(channelID, options, reason) {
726
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelID), {
725
+ async createThreadWithoutMessage(channelId, options, reason) {
726
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.threads(channelId), {
727
727
  json: {
728
728
  name: options.name,
729
729
  auto_archive_duration: options.autoArchiveDuration,
@@ -736,82 +736,82 @@ class Client extends node_events_1.default {
736
736
  return transformers_1.Channels.channelFromRaw(response);
737
737
  }
738
738
  /** https://discord.com/developers/docs/resources/message#crosspost-message */
739
- async crosspostMessage(channelID, messageID) {
740
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessage(channelID, messageID));
739
+ async crosspostMessage(channelId, messageId) {
740
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelMessage(channelId, messageId));
741
741
  return transformers_1.Messages.messageFromRaw(response);
742
742
  }
743
743
  /** https://discord.com/developers/docs/resources/message#delete-all-reactions */
744
- deleteAllMessageReactions(channelID, messageID, emoji) {
745
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageAllReactions(channelID, messageID, emoji));
744
+ deleteAllMessageReactions(channelId, messageId, emoji) {
745
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageAllReactions(channelId, messageId, emoji));
746
746
  }
747
747
  /** https://discord.com/developers/docs/resources/auto-moderation#delete-auto-moderation-rule */
748
- deleteAutoModerationRule(guildID, autoModerationRuleID, reason) {
749
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildAutoModerationRule(guildID, autoModerationRuleID), {
748
+ deleteAutoModerationRule(guildId, autoModerationRuleId, reason) {
749
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildAutoModerationRule(guildId, autoModerationRuleId), {
750
750
  reason,
751
751
  });
752
752
  }
753
753
  /** https://discord.com/developers/docs/resources/emoji#delete-application-emoji */
754
- deleteApplicationEmoji(applicationID, emojiID) {
755
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationEmoji(applicationID, emojiID));
754
+ deleteApplicationEmoji(applicationId, emojiId) {
755
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationEmoji(applicationId, emojiId));
756
756
  }
757
757
  /** https://discord.com/developers/docs/resources/channel#deleteclose-channel */
758
- async deleteChannel(channelID, reason) {
759
- const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channel(channelID), {
758
+ async deleteChannel(channelId, reason) {
759
+ const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channel(channelId), {
760
760
  reason,
761
761
  });
762
762
  return transformers_1.Channels.channelFromRaw(response);
763
763
  }
764
764
  /** https://discord.com/developers/docs/resources/channel#delete-channel-permission */
765
- deleteChannelPermission(channelID, overwriteID, reason) {
766
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPermission(channelID, overwriteID), {
765
+ deleteChannelPermission(channelId, overwriteId, reason) {
766
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPermission(channelId, overwriteId), {
767
767
  reason,
768
768
  });
769
769
  }
770
770
  /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
771
- deleteGlobalApplicationCommand(applicationID, commandID) {
772
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationCommand(applicationID, commandID));
771
+ deleteGlobalApplicationCommand(applicationId, commandId) {
772
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationCommand(applicationId, commandId));
773
773
  }
774
774
  /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
775
- deleteGuildApplicationCommand(applicationID, guildID, commandID) {
776
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationGuildCommand(applicationID, guildID, commandID));
775
+ deleteGuildApplicationCommand(applicationId, guildId, commandId) {
776
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationGuildCommand(applicationId, guildId, commandId));
777
777
  }
778
778
  /** https://discord.com/developers/docs/resources/emoji#delete-guild-emoji */
779
- deleteGuildEmoji(guildID, emojiID, reason) {
780
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildEmoji(guildID, emojiID), {
779
+ deleteGuildEmoji(guildId, emojiId, reason) {
780
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildEmoji(guildId, emojiId), {
781
781
  reason,
782
782
  });
783
783
  }
784
784
  /** https://discord.com/developers/docs/resources/guild#delete-guild-integration */
785
- deleteGuildIntegration(guildID, integrationID, reason) {
786
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildIntegration(guildID, integrationID), {
785
+ deleteGuildIntegration(guildId, integrationId, reason) {
786
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildIntegration(guildId, integrationId), {
787
787
  reason,
788
788
  });
789
789
  }
790
790
  /** https://discord.com/developers/docs/resources/guild#delete-guild-role */
791
- deleteGuildRole(guildID, roleID, reason) {
792
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildRole(guildID, roleID), {
791
+ deleteGuildRole(guildId, roleId, reason) {
792
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildRole(guildId, roleId), {
793
793
  reason,
794
794
  });
795
795
  }
796
796
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#delete-guild-scheduled-event */
797
- deleteGuildScheduledEvent(guildID, guildScheduledEventID) {
798
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildScheduledEvent(guildID, guildScheduledEventID));
797
+ deleteGuildScheduledEvent(guildId, guildScheduledEventId) {
798
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildScheduledEvent(guildId, guildScheduledEventId));
799
799
  }
800
800
  /** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
801
- deleteGuildSticker(guildID, stickerID, reason) {
802
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildSticker(guildID, stickerID), {
801
+ deleteGuildSticker(guildId, stickerId, reason) {
802
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildSticker(guildId, stickerId), {
803
803
  reason,
804
804
  });
805
805
  }
806
806
  /** https://discord.com/developers/docs/resources/soundboard#delete-guild-soundboard-sound */
807
- deleteGuildSoundboardSound(guildID, soundID, reason) {
808
- this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSound(guildID, soundID), {
807
+ deleteGuildSoundboardSound(guildId, soundId, reason) {
808
+ this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSound(guildId, soundId), {
809
809
  reason,
810
810
  });
811
811
  }
812
812
  /** https://discord.com/developers/docs/resources/guild-template#delete-guild-template */
813
- async deleteGuildTemplate(guildID, code) {
814
- const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildTemplate(guildID, code));
813
+ async deleteGuildTemplate(guildId, code) {
814
+ const response = await this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildTemplate(guildId, code));
815
815
  return transformers_1.GuildTemplates.guildTemplateFromRaw(response);
816
816
  }
817
817
  /** https://discord.com/developers/docs/resources/invite#delete-invite */
@@ -822,64 +822,65 @@ class Client extends node_events_1.default {
822
822
  return transformers_1.Invites.inviteFromRaw(response);
823
823
  }
824
824
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#delete-followup-message */
825
- deleteInteractionFollowupMessage(applicationID, interactionToken, messageID) {
826
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationID, interactionToken, messageID));
825
+ deleteInteractionFollowupMessage(applicationId, interactionToken, messageId) {
826
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationId, interactionToken, messageId));
827
827
  }
828
828
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#delete-original-interaction-response */
829
- deleteInteractionResponse(applicationID, interactionToken) {
830
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationID, interactionToken));
829
+ deleteInteractionResponse(applicationId, interactionToken) {
830
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(applicationId, interactionToken));
831
831
  }
832
832
  /** https://discord.com/developers/docs/resources/lobby#delete-lobby */
833
- deleteLobby(lobbyID) {
834
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.lobby(lobbyID));
833
+ deleteLobby(lobbyId) {
834
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.lobby(lobbyId));
835
835
  }
836
836
  /** https://discord.com/developers/docs/resources/message#delete-message */
837
- deleteMessage(channelID, messageID, reason) {
838
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessage(channelID, messageID), {
837
+ deleteMessage(channelId, messageId, reason) {
838
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessage(channelId, messageId), {
839
839
  reason,
840
840
  });
841
841
  }
842
842
  /** https://discord.com/developers/docs/resources/message#delete-user-reaction */
843
- deleteMessageReaction(channelID, messageID, emoji, userID) {
844
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageReaction(channelID, messageID, emoji, userID));
843
+ deleteMessageReaction(channelId, messageId, emoji, userId) {
844
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelMessageReaction(channelId, messageId, emoji, userId));
845
845
  }
846
846
  /** https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance */
847
- deleteStageInstance(channelID, reason) {
848
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.stageInstance(channelID), {
847
+ deleteStageInstance(channelId, reason) {
848
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.stageInstance(channelId), {
849
849
  reason,
850
850
  });
851
851
  }
852
852
  /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
853
- deleteTestEntitlement(applicationID, entitlementID) {
854
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationEntitlement(applicationID, entitlementID));
853
+ deleteTestEntitlement(applicationId, entitlementId) {
854
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationEntitlement(applicationId, entitlementId));
855
855
  }
856
856
  /** https://discord.com/developers/docs/resources/webhook#delete-webhook */
857
- deleteWebhook(webhookID, reason) {
858
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookID), {
857
+ deleteWebhook(webhookId, reason) {
858
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookId), {
859
859
  reason,
860
860
  });
861
861
  }
862
862
  /** https://discord.com/developers/docs/resources/webhook#delete-webhook-message */
863
- deleteWebhookMessage(webhookID, webhookToken, messageID, options) {
864
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(webhookID, webhookToken, messageID), {
863
+ deleteWebhookMessage(webhookId, webhookToken, messageId, options) {
864
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhookMessage(webhookId, webhookToken, messageId), {
865
865
  query: {
866
- thread_id: options?.threadID,
866
+ thread_id: options?.threadId,
867
867
  },
868
868
  });
869
869
  }
870
870
  /** https://discord.com/developers/docs/resources/webhook#delete-webhook-with-token */
871
- deleteWebhookWithToken(webhookID, webhookToken, reason) {
872
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookID, webhookToken), {
871
+ deleteWebhookWithToken(webhookId, webhookToken, reason) {
872
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.webhook(webhookId, webhookToken), {
873
873
  reason,
874
874
  authorization: false,
875
875
  });
876
876
  }
877
+ /** https://discord.com/developers/docs/events/gateway#initiating-a-disconnect */
877
878
  disconnect() {
878
879
  this.shards.forEach((shard) => shard.disconnect());
879
880
  }
880
881
  /** https://discord.com/developers/docs/resources/auto-moderation#modify-auto-moderation-rule */
881
- async editAutoModerationRule(guildID, autoModerationRuleID, options, reason) {
882
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildAutoModerationRule(guildID, autoModerationRuleID), {
882
+ async editAutoModerationRule(guildId, autoModerationRuleId, options, reason) {
883
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildAutoModerationRule(guildId, autoModerationRuleId), {
883
884
  json: {
884
885
  name: options.name,
885
886
  event_type: options.eventType,
@@ -897,8 +898,8 @@ class Client extends node_events_1.default {
897
898
  return transformers_1.AutoModeration.autoModerationRuleFromRaw(response);
898
899
  }
899
900
  /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
900
- async editApplicationCommandPermissions(applicationID, guildID, commandID, options) {
901
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommandPermissions(applicationID, guildID, commandID), {
901
+ async editApplicationCommandPermissions(applicationId, guildId, commandId, options) {
902
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationCommandPermissions(applicationId, guildId, commandId), {
902
903
  json: {
903
904
  permissions: options.permissions.map((permission) => ({
904
905
  id: permission.type,
@@ -910,15 +911,15 @@ class Client extends node_events_1.default {
910
911
  return transformers_1.Guilds.guildApplicationCommandPermissionsFromRaw(response);
911
912
  }
912
913
  /** https://discord.com/developers/docs/resources/emoji#modify-application-emoji */
913
- async editApplicationEmoji(applicationID, emojiID, options) {
914
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationEmoji(applicationID, emojiID), {
914
+ async editApplicationEmoji(applicationId, emojiId, options) {
915
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationEmoji(applicationId, emojiId), {
915
916
  json: options,
916
917
  });
917
918
  return transformers_1.Emojis.emojiFromRaw(response);
918
919
  }
919
920
  /** https://discord.com/developers/docs/resources/channel#modify-channel */
920
- async editChannel(channelID, options, reason) {
921
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channel(channelID), {
921
+ async editChannel(channelId, options, reason) {
922
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channel(channelId), {
922
923
  json: {
923
924
  name: options.name,
924
925
  icon: options.icon,
@@ -930,7 +931,7 @@ class Client extends node_events_1.default {
930
931
  bitrate: options.bitrate,
931
932
  user_limit: options.userLimit,
932
933
  permission_overwrites: options.permissionOverwrites,
933
- parent_id: options.parentID,
934
+ parent_id: options.parentId,
934
935
  rtc_region: options.rtcRegion,
935
936
  video_quality_mode: options.videoQualityMode,
936
937
  default_auto_archive_duration: options.defaultAutoArchiveDuration,
@@ -939,7 +940,7 @@ class Client extends node_events_1.default {
939
940
  default_reaction_emoji: options.defaultReactionEmoji !== undefined
940
941
  ? options.defaultReactionEmoji !== null
941
942
  ? {
942
- emoji_id: options.defaultReactionEmoji.emojiID,
943
+ emoji_id: options.defaultReactionEmoji.emojiId,
943
944
  emoji_name: options.defaultReactionEmoji.emojiName,
944
945
  }
945
946
  : null
@@ -958,20 +959,20 @@ class Client extends node_events_1.default {
958
959
  return transformers_1.Channels.channelFromRaw(response);
959
960
  }
960
961
  /** https://discord.com/developers/docs/resources/channel#edit-channel-permissions */
961
- editChannelPermissions(channelID, overwriteID, options, reason) {
962
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPermission(channelID, overwriteID), {
962
+ editChannelPermissions(channelId, overwriteId, options, reason) {
963
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPermission(channelId, overwriteId), {
963
964
  json: options,
964
965
  reason,
965
966
  });
966
967
  }
967
968
  /** https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions */
968
- editChannelPositions(guildID, options) {
969
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildChannels(guildID), {
969
+ editChannelPositions(guildId, options) {
970
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildChannels(guildId), {
970
971
  json: options.map((data) => ({
971
972
  id: data.id,
972
973
  position: data.position,
973
974
  lock_permissions: data.lockPermissions,
974
- parent_id: data.parentID,
975
+ parent_id: data.parentId,
975
976
  })),
976
977
  });
977
978
  }
@@ -987,18 +988,18 @@ class Client extends node_events_1.default {
987
988
  return transformers_1.Users.userFromRaw(response);
988
989
  }
989
990
  /** https://discord.com/developers/docs/resources/guild#modify-current-member */
990
- async editCurrentGuildMember(guildID, options, reason) {
991
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildID), {
991
+ async editCurrentGuildMember(guildId, options, reason) {
992
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildId), {
992
993
  json: options,
993
994
  reason,
994
995
  });
995
996
  return transformers_1.Guilds.guildMemberFromRaw(response);
996
997
  }
997
998
  /** https://discord.com/developers/docs/resources/guild#modify-current-user-voice-state */
998
- editCurrentUserVoiceState(guildID, options) {
999
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildID), {
999
+ editCurrentUserVoiceState(guildId, options) {
1000
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildId), {
1000
1001
  json: {
1001
- channel_id: options.channelID,
1002
+ channel_id: options.channelId,
1002
1003
  suppress: options.suppress,
1003
1004
  requestToSpeakTimestamp: options.requestToSpeakTimestamp,
1004
1005
  },
@@ -1032,8 +1033,8 @@ class Client extends node_events_1.default {
1032
1033
  return transformers_1.Applications.applicationFromRaw(response);
1033
1034
  }
1034
1035
  /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
1035
- async editGlobalApplicationCommand(applicationID, commandID, options) {
1036
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationCommand(applicationID, commandID), {
1036
+ async editGlobalApplicationCommand(applicationId, commandId, options) {
1037
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationCommand(applicationId, commandId), {
1037
1038
  json: {
1038
1039
  name: options.name,
1039
1040
  name_localizations: options.nameLocalizations,
@@ -1049,36 +1050,36 @@ class Client extends node_events_1.default {
1049
1050
  return transformers_1.ApplicationCommands.applicationCommandFromRaw(response);
1050
1051
  }
1051
1052
  /** https://discord.com/developers/docs/resources/guild#modify-guild */
1052
- async editGuild(guildID, options, reason) {
1053
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guild(guildID), {
1053
+ async editGuild(guildId, options, reason) {
1054
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guild(guildId), {
1054
1055
  json: {
1055
1056
  name: options.name,
1056
1057
  verification_level: options.verificationLevel,
1057
1058
  default_message_notifications: options.defaultMessageNotifications,
1058
1059
  explicit_content_filter: options.explicitContentFilter,
1059
- afk_channel_id: options.afkChannelID,
1060
+ afk_channel_id: options.afkChannelId,
1060
1061
  afk_timeout: options.afkTimeout,
1061
1062
  icon: options.icon,
1062
1063
  splash: options.splash,
1063
1064
  discovery_splash: options.discoverySplash,
1064
1065
  banner: options.banner,
1065
- system_channel_id: options.systemChannelID,
1066
+ system_channel_id: options.systemChannelId,
1066
1067
  system_channel_flags: options.systemChannelFlags,
1067
- rules_channel_id: options.rulesChannelID,
1068
- public_updates_channel_id: options.publicUpdatesChannelID,
1068
+ rules_channel_id: options.rulesChannelId,
1069
+ public_updates_channel_id: options.publicUpdatesChannelId,
1069
1070
  preferred_locale: options.preferredLocale,
1070
1071
  features: options.features,
1071
1072
  description: options.description,
1072
1073
  premium_progress_bar_enabled: options.premiumProgressBarEnabled,
1073
- safety_alerts_channel_id: options.safetyAlertsChannelID,
1074
+ safety_alerts_channel_id: options.safetyAlertsChannelId,
1074
1075
  },
1075
1076
  reason,
1076
1077
  });
1077
1078
  return transformers_1.Guilds.guildFromRaw(response);
1078
1079
  }
1079
1080
  /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
1080
- async editGuildApplicationCommand(applicationID, guildID, commandID, options) {
1081
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationGuildCommand(applicationID, guildID, commandID), {
1081
+ async editGuildApplicationCommand(applicationId, guildId, commandId, options) {
1082
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.applicationGuildCommand(applicationId, guildId, commandId), {
1082
1083
  json: {
1083
1084
  name: options.name,
1084
1085
  name_localizations: options.nameLocalizations,
@@ -1092,8 +1093,8 @@ class Client extends node_events_1.default {
1092
1093
  return transformers_1.ApplicationCommands.applicationCommandFromRaw(response);
1093
1094
  }
1094
1095
  /** https://discord.com/developers/docs/resources/emoji#modify-guild-emoji */
1095
- async editGuildEmoji(guildID, emojiID, options, reason) {
1096
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildEmoji(guildID, emojiID), {
1096
+ async editGuildEmoji(guildId, emojiId, options, reason) {
1097
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildEmoji(guildId, emojiId), {
1097
1098
  json: {
1098
1099
  name: options.name,
1099
1100
  roles: options.roles,
@@ -1103,8 +1104,8 @@ class Client extends node_events_1.default {
1103
1104
  return transformers_1.Emojis.emojiFromRaw(response);
1104
1105
  }
1105
1106
  /** https://discord.com/developers/docs/resources/emoji#modify-guild-incidents-actions */
1106
- async editGuildIncidentsActions(guildID, options, reason) {
1107
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildIncidentsActions(guildID), {
1107
+ async editGuildIncidentsActions(guildId, options, reason) {
1108
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildIncidentsActions(guildId), {
1108
1109
  json: {
1109
1110
  invites_disabled_until: options?.invitesDisabledUntil,
1110
1111
  dms_disabled_until: options?.dmsDisabledUntil,
@@ -1119,14 +1120,14 @@ class Client extends node_events_1.default {
1119
1120
  };
1120
1121
  }
1121
1122
  /** https://discord.com/developers/docs/resources/guild#modify-guild-member */
1122
- async editGuildMember(guildID, userID, options, reason) {
1123
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildID, userID), {
1123
+ async editGuildMember(guildId, userId, options, reason) {
1124
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildMember(guildId, userId), {
1124
1125
  json: {
1125
1126
  nick: options.nick,
1126
1127
  roles: options.roles,
1127
1128
  mute: options.mute,
1128
1129
  deaf: options.deaf,
1129
- channel_id: options.channelID,
1130
+ channel_id: options.channelId,
1130
1131
  communication_disabled_until: options.communicationDisabledUntil,
1131
1132
  flags: options.flags,
1132
1133
  },
@@ -1135,20 +1136,20 @@ class Client extends node_events_1.default {
1135
1136
  return transformers_1.Guilds.guildMemberFromRaw(response);
1136
1137
  }
1137
1138
  /** https://discord.com/developers/docs/resources/guild#modify-guild-onboarding */
1138
- editGuildOnboarding(guildID, options, reason) {
1139
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildOnboarding(guildID), {
1139
+ editGuildOnboarding(guildId, options, reason) {
1140
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildOnboarding(guildId), {
1140
1141
  json: {
1141
1142
  prompts: options.prompts?.map((prompt) => ({
1142
1143
  id: prompt.id,
1143
1144
  type: prompt.type,
1144
1145
  options: prompt.options.map((promptOption) => ({
1145
1146
  id: promptOption.id,
1146
- channel_ids: promptOption.channelIDs,
1147
- role_ids: promptOption.roleIDs,
1147
+ channel_ids: promptOption.channelIds,
1148
+ role_ids: promptOption.roleIds,
1148
1149
  emoji: promptOption.emoji !== undefined
1149
1150
  ? transformers_1.Emojis.emojiToRaw(promptOption.emoji)
1150
1151
  : undefined,
1151
- emoji_id: promptOption.emojiID,
1152
+ emoji_id: promptOption.emojiId,
1152
1153
  emoji_name: promptOption.emojiName,
1153
1154
  emoji_animated: promptOption.emojiAnimated,
1154
1155
  title: promptOption.title,
@@ -1164,8 +1165,8 @@ class Client extends node_events_1.default {
1164
1165
  });
1165
1166
  }
1166
1167
  /** https://discord.com/developers/docs/resources/guild#modify-guild-role */
1167
- async editGuildRole(guildID, roleID, options, reason) {
1168
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRole(guildID, roleID), {
1168
+ async editGuildRole(guildId, roleId, options, reason) {
1169
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRole(guildId, roleId), {
1169
1170
  json: {
1170
1171
  name: options?.name,
1171
1172
  permissions: options?.permissions,
@@ -1185,18 +1186,18 @@ class Client extends node_events_1.default {
1185
1186
  return transformers_1.Roles.roleFromRaw(response);
1186
1187
  }
1187
1188
  /** https://discord.com/developers/docs/resources/guild#modify-guild-role-positions */
1188
- async editGuildRolePositions(guildID, options, reason) {
1189
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRoles(guildID), {
1189
+ async editGuildRolePositions(guildId, options, reason) {
1190
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildRoles(guildId), {
1190
1191
  json: options,
1191
1192
  reason,
1192
1193
  });
1193
1194
  return response.map((role) => transformers_1.Roles.roleFromRaw(role));
1194
1195
  }
1195
1196
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event */
1196
- async editGuildScheduledEvent(guildID, guildScheduledEventID, options, reason) {
1197
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildScheduledEvent(guildID, guildScheduledEventID), {
1197
+ async editGuildScheduledEvent(guildId, guildScheduledEventId, options, reason) {
1198
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildScheduledEvent(guildId, guildScheduledEventId), {
1198
1199
  json: {
1199
- channel_id: options.channelID,
1200
+ channel_id: options.channelId,
1200
1201
  entity_metadata: options.entityMetadata,
1201
1202
  name: options.name,
1202
1203
  privacy_level: options.privacyLevel,
@@ -1217,8 +1218,8 @@ class Client extends node_events_1.default {
1217
1218
  return transformers_1.GuildScheduledEvents.guildScheduledEventFromRaw(response);
1218
1219
  }
1219
1220
  /** https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */
1220
- async editGuildSticker(guildID, stickerID, options, reason) {
1221
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildSticker(guildID, stickerID), {
1221
+ async editGuildSticker(guildId, stickerId, options, reason) {
1222
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildSticker(guildId, stickerId), {
1222
1223
  json: {
1223
1224
  name: options.name,
1224
1225
  description: options.description,
@@ -1229,12 +1230,12 @@ class Client extends node_events_1.default {
1229
1230
  return transformers_1.Stickers.stickerFromRaw(response);
1230
1231
  }
1231
1232
  /** https://discord.com/developers/docs/resources/soundboard#edit-guild-soundboard-sound */
1232
- async editGuildSoundboardSound(guildID, soundID, options, reason) {
1233
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSound(guildID, soundID), {
1233
+ async editGuildSoundboardSound(guildId, soundId, options, reason) {
1234
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSound(guildId, soundId), {
1234
1235
  json: {
1235
1236
  name: options.name,
1236
1237
  volume: options.volume,
1237
- emoji_id: options.emojiID,
1238
+ emoji_id: options.emojiId,
1238
1239
  emoji_name: options.emojiName,
1239
1240
  },
1240
1241
  reason,
@@ -1242,8 +1243,8 @@ class Client extends node_events_1.default {
1242
1243
  return transformers_1.Soundboards.soundboardSoundFromRaw(response);
1243
1244
  }
1244
1245
  /** https://discord.com/developers/docs/resources/guild-template#modify-guild-template */
1245
- async editGuildTemplate(guildID, code, options) {
1246
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildTemplate(guildID, code), {
1246
+ async editGuildTemplate(guildId, code, options) {
1247
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildTemplate(guildId, code), {
1247
1248
  json: {
1248
1249
  name: options.name,
1249
1250
  description: options.description,
@@ -1252,14 +1253,14 @@ class Client extends node_events_1.default {
1252
1253
  return transformers_1.GuildTemplates.guildTemplateFromRaw(response);
1253
1254
  }
1254
1255
  /** https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen */
1255
- async editGuildWelcomeScreen(guildID, options, reason) {
1256
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWelcomeScreen(guildID), {
1256
+ async editGuildWelcomeScreen(guildId, options, reason) {
1257
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWelcomeScreen(guildId), {
1257
1258
  json: {
1258
1259
  enabled: options.enabled,
1259
1260
  welcome_channels: options.welcomeChannels?.map((welcomeChannel) => ({
1260
- channel_id: welcomeChannel.channelID,
1261
+ channel_id: welcomeChannel.channelId,
1261
1262
  description: welcomeChannel.description,
1262
- emoji_id: welcomeChannel.emojiID,
1263
+ emoji_id: welcomeChannel.emojiId,
1263
1264
  emoji_name: welcomeChannel.emojiName,
1264
1265
  })),
1265
1266
  description: options.description,
@@ -1269,30 +1270,30 @@ class Client extends node_events_1.default {
1269
1270
  return {
1270
1271
  description: response.description,
1271
1272
  welcomeChannels: response.welcome_channels.map((welcomeScreenChannel) => ({
1272
- channelID: welcomeScreenChannel.channel_id,
1273
+ channelId: welcomeScreenChannel.channel_id,
1273
1274
  description: welcomeScreenChannel.description,
1274
- emojiID: welcomeScreenChannel.emoji_id,
1275
+ emojiId: welcomeScreenChannel.emoji_id,
1275
1276
  emojiName: welcomeScreenChannel.emoji_name,
1276
1277
  })),
1277
1278
  };
1278
1279
  }
1279
1280
  /** https://discord.com/developers/docs/resources/guild#modify-guild-widget */
1280
- async editGuildWidget(guildID, options, reason) {
1281
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWidgetSettings(guildID), {
1281
+ async editGuildWidget(guildId, options, reason) {
1282
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildWidgetSettings(guildId), {
1282
1283
  json: {
1283
1284
  enabled: options.enabled,
1284
- channel_id: options.channelID,
1285
+ channel_id: options.channelId,
1285
1286
  },
1286
1287
  reason,
1287
1288
  });
1288
1289
  return {
1289
1290
  enabled: response.enabled,
1290
- channelID: response.channel_id,
1291
+ channelId: response.channel_id,
1291
1292
  };
1292
1293
  }
1293
1294
  /** https://discord.com/developers/docs/resources/lobby#modify-lobby */
1294
- async editLobby(lobbyID, options) {
1295
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.lobby(lobbyID), {
1295
+ async editLobby(lobbyId, options) {
1296
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.lobby(lobbyId), {
1296
1297
  json: {
1297
1298
  metadata: options.metadata,
1298
1299
  members: options.members,
@@ -1302,8 +1303,8 @@ class Client extends node_events_1.default {
1302
1303
  return transformers_1.Lobbies.lobbyFromRaw(response);
1303
1304
  }
1304
1305
  /** https://discord.com/developers/docs/resources/message#edit-message */
1305
- async editMessage(channelID, messageID, options) {
1306
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channelMessage(channelID, messageID), {
1306
+ async editMessage(channelId, messageId, options) {
1307
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.channelMessage(channelId, messageId), {
1307
1308
  json: {
1308
1309
  content: options.content,
1309
1310
  embeds: options.embeds !== null
@@ -1332,8 +1333,8 @@ class Client extends node_events_1.default {
1332
1333
  return transformers_1.Messages.messageFromRaw(response);
1333
1334
  }
1334
1335
  /** https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance */
1335
- async editStageInstance(channelID, options, reason) {
1336
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.stageInstance(channelID), {
1336
+ async editStageInstance(channelId, options, reason) {
1337
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.stageInstance(channelId), {
1337
1338
  json: {
1338
1339
  topic: options.topic,
1339
1340
  privacy_level: options.privacyLevel,
@@ -1343,8 +1344,8 @@ class Client extends node_events_1.default {
1343
1344
  return transformers_1.StageInstances.stageInstanceFromRaw(response);
1344
1345
  }
1345
1346
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message */
1346
- async editInteractionFollowupMessage(applicationID, interactionToken, messageID, options) {
1347
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookMessage(applicationID, interactionToken, messageID), {
1347
+ async editInteractionFollowupMessage(applicationId, interactionToken, messageId, options) {
1348
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookMessage(applicationId, interactionToken, messageId), {
1348
1349
  json: {
1349
1350
  content: options.content,
1350
1351
  embeds: options.embeds !== null
@@ -1386,7 +1387,7 @@ class Client extends node_events_1.default {
1386
1387
  ? {
1387
1388
  question: options.poll.question,
1388
1389
  answers: options.poll.answers.map((answer) => ({
1389
- answer_id: answer.answerID,
1390
+ answer_id: answer.answerId,
1390
1391
  poll_media: answer.pollMedia,
1391
1392
  })),
1392
1393
  duration: options.poll.duration,
@@ -1398,14 +1399,14 @@ class Client extends node_events_1.default {
1398
1399
  },
1399
1400
  files: options.files,
1400
1401
  query: {
1401
- thread_id: options.threadID,
1402
+ thread_id: options.threadId,
1402
1403
  },
1403
1404
  });
1404
1405
  return transformers_1.Messages.messageFromRaw(response);
1405
1406
  }
1406
1407
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response */
1407
- async editInteractionResponse(applicationID, interactionToken, options) {
1408
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(applicationID, interactionToken), {
1408
+ async editInteractionResponse(applicationId, interactionToken, options) {
1409
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(applicationId, interactionToken), {
1409
1410
  json: {
1410
1411
  content: options.content,
1411
1412
  embeds: options.embeds !== null
@@ -1447,7 +1448,7 @@ class Client extends node_events_1.default {
1447
1448
  ? {
1448
1449
  question: options.poll.question,
1449
1450
  answers: options.poll.answers.map((answer) => ({
1450
- answer_id: answer.answerID,
1451
+ answer_id: answer.answerId,
1451
1452
  poll_media: answer.pollMedia,
1452
1453
  })),
1453
1454
  duration: options.poll.duration,
@@ -1459,35 +1460,35 @@ class Client extends node_events_1.default {
1459
1460
  },
1460
1461
  files: options.files,
1461
1462
  query: {
1462
- thread_id: options.threadID,
1463
+ thread_id: options.threadId,
1463
1464
  },
1464
1465
  });
1465
1466
  return transformers_1.Messages.messageFromRaw(response);
1466
1467
  }
1467
1468
  /** https://discord.com/developers/docs/resources/guild#modify-user-voice-state */
1468
- editUserVoiceState(guildID, userID, options) {
1469
- this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildID, userID), {
1469
+ editUserVoiceState(guildId, userId, options) {
1470
+ this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildVoiceState(guildId, userId), {
1470
1471
  json: {
1471
- channel_id: options.channelID,
1472
+ channel_id: options.channelId,
1472
1473
  suppress: options.suppress,
1473
1474
  },
1474
1475
  });
1475
1476
  }
1476
1477
  /** https://discord.com/developers/docs/resources/webhook#modify-webhook */
1477
- async editWebhook(webhookID, options, reason) {
1478
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookID), {
1478
+ async editWebhook(webhookId, options, reason) {
1479
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookId), {
1479
1480
  json: {
1480
1481
  name: options.name,
1481
1482
  avatar: options.avatar,
1482
- channel_id: options.channelID,
1483
+ channel_id: options.channelId,
1483
1484
  },
1484
1485
  reason,
1485
1486
  });
1486
1487
  return transformers_1.Webhooks.webhookFromRaw(response);
1487
1488
  }
1488
1489
  /** https://discord.com/developers/docs/resources/webhook#edit-webhook-message */
1489
- async editWebhookMessage(webhookID, webhookToken, messageID, options) {
1490
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(webhookID, webhookToken, messageID), {
1490
+ async editWebhookMessage(webhookId, webhookToken, messageId, options) {
1491
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhookMessage(webhookId, webhookToken, messageId), {
1491
1492
  json: {
1492
1493
  content: options.content,
1493
1494
  embeds: options.embeds !== null
@@ -1529,7 +1530,7 @@ class Client extends node_events_1.default {
1529
1530
  ? {
1530
1531
  question: options.poll.question,
1531
1532
  answers: options.poll.answers.map((answer) => ({
1532
- answer_id: answer.answerID,
1533
+ answer_id: answer.answerId,
1533
1534
  poll_media: answer.pollMedia,
1534
1535
  })),
1535
1536
  duration: options.poll.duration,
@@ -1541,15 +1542,15 @@ class Client extends node_events_1.default {
1541
1542
  },
1542
1543
  files: options.files,
1543
1544
  query: {
1544
- thread_id: options.threadID,
1545
+ thread_id: options.threadId,
1545
1546
  with_components: options.withComponents,
1546
1547
  },
1547
1548
  });
1548
1549
  return transformers_1.Messages.messageFromRaw(response);
1549
1550
  }
1550
1551
  /** https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token */
1551
- async editWebhookWithToken(webhookID, webhookToken, options, reason) {
1552
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookID, webhookToken), {
1552
+ async editWebhookWithToken(webhookId, webhookToken, options, reason) {
1553
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.webhook(webhookId, webhookToken), {
1553
1554
  json: {
1554
1555
  name: options.name,
1555
1556
  avatar: options.avatar,
@@ -1560,13 +1561,13 @@ class Client extends node_events_1.default {
1560
1561
  return transformers_1.Webhooks.webhookFromRaw(response);
1561
1562
  }
1562
1563
  /** https://discord.com/developers/docs/resources/poll#end-poll */
1563
- async endPoll(channelID, messageID) {
1564
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.pollExpire(channelID, messageID));
1564
+ async endPoll(channelId, messageId) {
1565
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.pollExpire(channelId, messageId));
1565
1566
  return transformers_1.Messages.messageFromRaw(response);
1566
1567
  }
1567
1568
  /** https://discord.com/developers/docs/resources/webhook#execute-webhook */
1568
- async executeWebhook(webhookID, webhookToken, options) {
1569
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(webhookID, webhookToken), {
1569
+ async executeWebhook(webhookId, webhookToken, options) {
1570
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhook(webhookId, webhookToken), {
1570
1571
  json: {
1571
1572
  content: options.content,
1572
1573
  username: options.username,
@@ -1592,7 +1593,7 @@ class Client extends node_events_1.default {
1592
1593
  ? {
1593
1594
  question: options.poll.question,
1594
1595
  answers: options.poll.answers.map((answer) => ({
1595
- answer_id: answer.answerID,
1596
+ answer_id: answer.answerId,
1596
1597
  poll_media: answer.pollMedia,
1597
1598
  })),
1598
1599
  duration: options.poll.duration,
@@ -1604,7 +1605,7 @@ class Client extends node_events_1.default {
1604
1605
  files: options.files,
1605
1606
  query: {
1606
1607
  wait: options.wait,
1607
- thread_id: options.threadID,
1608
+ thread_id: options.threadId,
1608
1609
  with_components: options.withComponents,
1609
1610
  },
1610
1611
  });
@@ -1615,10 +1616,10 @@ class Client extends node_events_1.default {
1615
1616
  *
1616
1617
  * https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook
1617
1618
  */
1618
- async executeWebhookPlatform(webhookID, webhookToken, platform, options) {
1619
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookPlatform(webhookID, webhookToken, platform), {
1619
+ async executeWebhookPlatform(webhookId, webhookToken, platform, options) {
1620
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.webhookPlatform(webhookId, webhookToken, platform), {
1620
1621
  query: {
1621
- thread_id: options.threadID,
1622
+ thread_id: options.threadId,
1622
1623
  wait: options.wait,
1623
1624
  },
1624
1625
  json: options,
@@ -1626,29 +1627,29 @@ class Client extends node_events_1.default {
1626
1627
  return response !== null ? transformers_1.Messages.messageFromRaw(response) : null;
1627
1628
  }
1628
1629
  /** https://discord.com/developers/docs/resources/channel#follow-announcement-channel */
1629
- async followChannel(channelID, options, reason) {
1630
- const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelFollowers(channelID), {
1630
+ async followChannel(channelId, options, reason) {
1631
+ const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelFollowers(channelId), {
1631
1632
  json: {
1632
- webhook_channel_id: options.webhookChannelID,
1633
+ webhook_channel_id: options.webhookChannelId,
1633
1634
  },
1634
1635
  reason,
1635
1636
  });
1636
1637
  return {
1637
- channelID: response.channel_id,
1638
- webhookID: response.webhook_id,
1638
+ channelId: response.channel_id,
1639
+ webhookId: response.webhook_id,
1639
1640
  };
1640
1641
  }
1641
1642
  /** https://discord.com/developers/docs/resources/guild#list-active-guild-threads */
1642
- async getActiveGuildThreads(guildID) {
1643
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildActiveThreads(guildID));
1643
+ async getActiveGuildThreads(guildId) {
1644
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildActiveThreads(guildId));
1644
1645
  return {
1645
1646
  threads: response.threads.map((thread) => transformers_1.Channels.channelFromRaw(thread)),
1646
1647
  members: response.members.map((threadMember) => transformers_1.Channels.threadMemberFromRaw(threadMember)),
1647
1648
  };
1648
1649
  }
1649
1650
  /** https://discord.com/developers/docs/resources/channel#list-public-archived-threads */
1650
- async getArchivedThreads(channelID, archivedStatus, options) {
1651
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelID, archivedStatus, false), {
1651
+ async getArchivedThreads(channelId, archivedStatus, options) {
1652
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelId, archivedStatus, false), {
1652
1653
  query: {
1653
1654
  before: options?.before,
1654
1655
  limit: options?.limit,
@@ -1661,10 +1662,10 @@ class Client extends node_events_1.default {
1661
1662
  };
1662
1663
  }
1663
1664
  /** https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log */
1664
- async getAuditLog(guildID, options) {
1665
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAuditLog(guildID), {
1665
+ async getAuditLog(guildId, options) {
1666
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAuditLog(guildId), {
1666
1667
  query: {
1667
- user_id: options?.userID,
1668
+ user_id: options?.userId,
1668
1669
  action_type: options?.actionType,
1669
1670
  before: options?.before,
1670
1671
  after: options?.after,
@@ -1674,71 +1675,71 @@ class Client extends node_events_1.default {
1674
1675
  return transformers_1.AuditLogs.auditLogFromRaw(response);
1675
1676
  }
1676
1677
  /** https://discord.com/developers/docs/resources/auto-moderation#get-auto-moderation-rule */
1677
- async getAutoModerationRule(guildID, ruleID) {
1678
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRule(guildID, ruleID));
1678
+ async getAutoModerationRule(guildId, ruleId) {
1679
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRule(guildId, ruleId));
1679
1680
  return transformers_1.AutoModeration.autoModerationRuleFromRaw(response);
1680
1681
  }
1681
1682
  /** https://discord.com/developers/docs/resources/auto-moderation#list-auto-moderation-rules-for-guild */
1682
- async getAutoModerationRules(guildID) {
1683
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRules(guildID));
1683
+ async getAutoModerationRules(guildId) {
1684
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildAutoModerationRules(guildId));
1684
1685
  return response.map((autoModerationRule) => transformers_1.AutoModeration.autoModerationRuleFromRaw(autoModerationRule));
1685
1686
  }
1686
1687
  /** https://discord.com/developers/docs/interactions/application-commands#get-application-activity-instance */
1687
- async getApplicationActivityInstance(applicationID, instanceID) {
1688
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationActivityInstance(applicationID, instanceID));
1688
+ async getApplicationActivityInstance(applicationId, instanceId) {
1689
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationActivityInstance(applicationId, instanceId));
1689
1690
  return {
1690
- applicationID: response.application_id,
1691
- instanceID: response.instance_id,
1692
- launchID: response.launch_id,
1691
+ applicationId: response.application_id,
1692
+ instanceId: response.instance_id,
1693
+ launchId: response.launch_id,
1693
1694
  location: {
1694
1695
  id: response.location.id,
1695
1696
  kind: response.location.kind,
1696
- channelID: response.location.channel_id,
1697
- guildID: response.location.guild_id,
1697
+ channelId: response.location.channel_id,
1698
+ guildId: response.location.guild_id,
1698
1699
  },
1699
1700
  users: response.users,
1700
1701
  };
1701
1702
  }
1702
1703
  /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
1703
- async getApplicationCommandPermissions(applicationID, guildID, commandID) {
1704
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommandPermissions(applicationID, guildID, commandID));
1704
+ async getApplicationCommandPermissions(applicationId, guildId, commandId) {
1705
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommandPermissions(applicationId, guildId, commandId));
1705
1706
  return transformers_1.Guilds.guildApplicationCommandPermissionsFromRaw(response);
1706
1707
  }
1707
1708
  /** https://discord.com/developers/docs/resources/emoji#get-application-emoji */
1708
- async getApplicationEmoji(applicationID, emojiID) {
1709
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEmoji(applicationID, emojiID));
1709
+ async getApplicationEmoji(applicationId, emojiId) {
1710
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEmoji(applicationId, emojiId));
1710
1711
  return transformers_1.Emojis.emojiFromRaw(response);
1711
1712
  }
1712
1713
  /** https://discord.com/developers/docs/resources/emoji#list-application-emojis */
1713
- async getApplicationEmojis(applicationID) {
1714
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEmojis(applicationID));
1714
+ async getApplicationEmojis(applicationId) {
1715
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEmojis(applicationId));
1715
1716
  return {
1716
1717
  items: response.items.map((emoji) => transformers_1.Emojis.emojiFromRaw(emoji)),
1717
1718
  };
1718
1719
  }
1719
1720
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
1720
- async getApplicationRoleConnectionMetadataRecords(applicationID) {
1721
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationID));
1721
+ async getApplicationRoleConnectionMetadataRecords(applicationId) {
1722
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationId));
1722
1723
  return response.map((applicationRoleConnectionMetadata) => transformers_1.ApplicationRoleConnectionMetadatas.applicationRoleConnectionMetadataFromRaw(applicationRoleConnectionMetadata));
1723
1724
  }
1724
1725
  /** https://discord.com/developers/docs/resources/channel#get-channel */
1725
- async getChannel(channelID) {
1726
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channel(channelID));
1726
+ async getChannel(channelId) {
1727
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channel(channelId));
1727
1728
  return transformers_1.Channels.channelFromRaw(response);
1728
1729
  }
1729
1730
  /** https://discord.com/developers/docs/resources/guild#get-guild-channels */
1730
- async getChannels(guildID) {
1731
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildChannels(guildID));
1731
+ async getChannels(guildId) {
1732
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildChannels(guildId));
1732
1733
  return response.map((channel) => transformers_1.Channels.channelFromRaw(channel));
1733
1734
  }
1734
1735
  /** https://discord.com/developers/docs/resources/channel#get-channel-invites */
1735
- async getChannelInvites(channelID) {
1736
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelInvites(channelID));
1736
+ async getChannelInvites(channelId) {
1737
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelInvites(channelId));
1737
1738
  return response.map((invite) => transformers_1.Invites.inviteFromRaw(invite));
1738
1739
  }
1739
1740
  /** https://discord.com/developers/docs/resources/webhook#get-channel-webhooks */
1740
- async getChannelWebhooks(channelID) {
1741
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelWebhooks(channelID));
1741
+ async getChannelWebhooks(channelId) {
1742
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelWebhooks(channelId));
1742
1743
  return response.map((webhook) => transformers_1.Webhooks.webhookFromRaw(webhook));
1743
1744
  }
1744
1745
  /** https://discord.com/developers/docs/resources/application#get-current-application */
@@ -1747,8 +1748,8 @@ class Client extends node_events_1.default {
1747
1748
  return transformers_1.Applications.applicationFromRaw(response);
1748
1749
  }
1749
1750
  /** https://discord.com/developers/docs/resources/user#get-current-user-application-role-connection */
1750
- async getCurrentApplicationRoleConnection(applicationID) {
1751
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.userApplicationRoleConnection(applicationID));
1751
+ async getCurrentApplicationRoleConnection(applicationId) {
1752
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.userApplicationRoleConnection(applicationId));
1752
1753
  return {
1753
1754
  platformName: response.platform_name,
1754
1755
  platformUsername: response.platform_username,
@@ -1756,8 +1757,8 @@ class Client extends node_events_1.default {
1756
1757
  };
1757
1758
  }
1758
1759
  /** https://discord.com/developers/docs/resources/user#get-current-user-guild-member */
1759
- async getCurrentGuildMember(guildID) {
1760
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildID));
1760
+ async getCurrentGuildMember(guildId) {
1761
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildId));
1761
1762
  return transformers_1.Guilds.guildMemberFromRaw(response);
1762
1763
  }
1763
1764
  /** https://discord.com/developers/docs/resources/user#get-current-user-connections */
@@ -1777,8 +1778,8 @@ class Client extends node_events_1.default {
1777
1778
  }));
1778
1779
  }
1779
1780
  /** https://discord.com/developers/docs/resources/voice#get-current-user-voice-state */
1780
- async getCurrentUserVoiceState(guildID) {
1781
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceState(guildID));
1781
+ async getCurrentUserVoiceState(guildId) {
1782
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceState(guildId));
1782
1783
  return transformers_1.Voice.voiceStateFromRaw(response);
1783
1784
  }
1784
1785
  /** https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds */
@@ -1787,20 +1788,20 @@ class Client extends node_events_1.default {
1787
1788
  return response.map((sound) => transformers_1.Soundboards.soundboardSoundFromRaw(sound));
1788
1789
  }
1789
1790
  /** https://discord.com/developers/docs/resources/entitlement#get-entitlement */
1790
- async getEntitlement(applicationID, entitlementID) {
1791
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEntitlement(applicationID, entitlementID));
1791
+ async getEntitlement(applicationId, entitlementId) {
1792
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEntitlement(applicationId, entitlementId));
1792
1793
  return transformers_1.Entitlements.entitlementFromRaw(response);
1793
1794
  }
1794
1795
  /** https://discord.com/developers/docs/resources/entitlement#list-entitlements */
1795
- async getEntitlements(applicationID, options) {
1796
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEntitlements(applicationID), {
1796
+ async getEntitlements(applicationId, options) {
1797
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationEntitlements(applicationId), {
1797
1798
  query: {
1798
- user_id: options?.userID,
1799
- sku_ids: options?.skuIDs,
1799
+ user_id: options?.userId,
1800
+ sku_ids: options?.skuIds,
1800
1801
  before: options?.before,
1801
1802
  after: options?.after,
1802
1803
  limit: options?.limit,
1803
- guild_id: options?.guildID,
1804
+ guild_id: options?.guildId,
1804
1805
  exclude_ended: options?.excludeEnded,
1805
1806
  exclude_deleted: options?.excludeDeleted,
1806
1807
  },
@@ -1826,13 +1827,13 @@ class Client extends node_events_1.default {
1826
1827
  };
1827
1828
  }
1828
1829
  /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
1829
- async getGlobalApplicationCommand(applicationID, commandID) {
1830
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommand(applicationID, commandID));
1830
+ async getGlobalApplicationCommand(applicationId, commandId) {
1831
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommand(applicationId, commandId));
1831
1832
  return transformers_1.ApplicationCommands.applicationCommandFromRaw(response);
1832
1833
  }
1833
1834
  /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
1834
- async getGlobalApplicationCommands(applicationID, options) {
1835
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommands(applicationID), {
1835
+ async getGlobalApplicationCommands(applicationId, options) {
1836
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationCommands(applicationId), {
1836
1837
  query: {
1837
1838
  with_localizations: options.withLocalizations,
1838
1839
  },
@@ -1840,8 +1841,8 @@ class Client extends node_events_1.default {
1840
1841
  return response.map((applicationCommand) => transformers_1.ApplicationCommands.applicationCommandFromRaw(applicationCommand));
1841
1842
  }
1842
1843
  /** https://discord.com/developers/docs/resources/guild#get-guild */
1843
- async getGuild(guildID, options) {
1844
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guild(guildID), {
1844
+ async getGuild(guildId, options) {
1845
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guild(guildId), {
1845
1846
  query: {
1846
1847
  with_counts: options?.withCounts,
1847
1848
  },
@@ -1871,13 +1872,13 @@ class Client extends node_events_1.default {
1871
1872
  }));
1872
1873
  }
1873
1874
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
1874
- async getGuildApplicationCommand(applicationID, guildID, commandID) {
1875
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommand(applicationID, guildID, commandID));
1875
+ async getGuildApplicationCommand(applicationId, guildId, commandId) {
1876
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommand(applicationId, guildId, commandId));
1876
1877
  return transformers_1.ApplicationCommands.applicationCommandFromRaw(response);
1877
1878
  }
1878
1879
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
1879
- async getGuildApplicationCommands(applicationID, guildID, options) {
1880
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommands(applicationID, guildID), {
1880
+ async getGuildApplicationCommands(applicationId, guildId, options) {
1881
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationGuildCommands(applicationId, guildId), {
1881
1882
  query: {
1882
1883
  with_localizations: options?.withLocalizations,
1883
1884
  },
@@ -1885,21 +1886,21 @@ class Client extends node_events_1.default {
1885
1886
  return response.map((applicationCommand) => transformers_1.ApplicationCommands.applicationCommandFromRaw(applicationCommand));
1886
1887
  }
1887
1888
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions */
1888
- async getGuildApplicationCommandPermissions(applicationID, guildID) {
1889
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildApplicationCommandsPermissions(applicationID, guildID));
1889
+ async getGuildApplicationCommandPermissions(applicationId, guildId) {
1890
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildApplicationCommandsPermissions(applicationId, guildId));
1890
1891
  return transformers_1.Guilds.guildApplicationCommandPermissionsFromRaw(response);
1891
1892
  }
1892
1893
  /** https://discord.com/developers/docs/resources/guild#get-guild-ban */
1893
- async getGuildBan(guildID, userID) {
1894
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBan(guildID, userID));
1894
+ async getGuildBan(guildId, userId) {
1895
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBan(guildId, userId));
1895
1896
  return {
1896
1897
  reason: response.reason,
1897
1898
  user: transformers_1.Users.userFromRaw(response.user),
1898
1899
  };
1899
1900
  }
1900
1901
  /** https://discord.com/developers/docs/resources/guild#get-guild-bans */
1901
- async getGuildBans(guildID, options) {
1902
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBans(guildID), {
1902
+ async getGuildBans(guildId, options) {
1903
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildBans(guildId), {
1903
1904
  query: {
1904
1905
  limit: options?.limit,
1905
1906
  before: options?.before,
@@ -1912,33 +1913,33 @@ class Client extends node_events_1.default {
1912
1913
  }));
1913
1914
  }
1914
1915
  /** https://discord.com/developers/docs/resources/emoji#get-guild-emoji */
1915
- async getGuildEmoji(guildID, emojiID) {
1916
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmoji(guildID, emojiID));
1916
+ async getGuildEmoji(guildId, emojiId) {
1917
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmoji(guildId, emojiId));
1917
1918
  return transformers_1.Emojis.emojiFromRaw(response);
1918
1919
  }
1919
1920
  /** https://discord.com/developers/docs/resources/emoji#list-guild-emojis */
1920
- async getGuildEmojis(guildID) {
1921
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmojis(guildID));
1921
+ async getGuildEmojis(guildId) {
1922
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildEmojis(guildId));
1922
1923
  return response.map((emoji) => transformers_1.Emojis.emojiFromRaw(emoji));
1923
1924
  }
1924
1925
  /** https://discord.com/developers/docs/resources/guild#get-guild-integrations */
1925
- async getGuildIntegrations(guildID) {
1926
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildIntegrations(guildID));
1926
+ async getGuildIntegrations(guildId) {
1927
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildIntegrations(guildId));
1927
1928
  return response.map((integration) => transformers_1.Guilds.integrationFromRaw(integration));
1928
1929
  }
1929
1930
  /** https://discord.com/developers/docs/resources/guild#get-guild-invites */
1930
- async getGuildInvites(guildID) {
1931
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildInvites(guildID));
1931
+ async getGuildInvites(guildId) {
1932
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildInvites(guildId));
1932
1933
  return response.map((invite) => transformers_1.Invites.inviteFromRaw(invite));
1933
1934
  }
1934
1935
  /** https://discord.com/developers/docs/resources/guild#get-guild-member */
1935
- async getGuildMember(guildID, userID) {
1936
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildID, userID));
1936
+ async getGuildMember(guildId, userId) {
1937
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMember(guildId, userId));
1937
1938
  return transformers_1.Guilds.guildMemberFromRaw(response);
1938
1939
  }
1939
1940
  /** https://discord.com/developers/docs/resources/guild#list-guild-members */
1940
- async getGuildMembers(guildID, options) {
1941
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembers(guildID), {
1941
+ async getGuildMembers(guildId, options) {
1942
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembers(guildId), {
1942
1943
  query: {
1943
1944
  limit: options.limit,
1944
1945
  after: options.after,
@@ -1947,21 +1948,21 @@ class Client extends node_events_1.default {
1947
1948
  return response.map((guildMember) => transformers_1.Guilds.guildMemberFromRaw(guildMember));
1948
1949
  }
1949
1950
  /** https://discord.com/developers/docs/resources/guild#get-guild-onboarding */
1950
- async getGuildOnboarding(guildID) {
1951
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildOnboarding(guildID));
1951
+ async getGuildOnboarding(guildId) {
1952
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildOnboarding(guildId));
1952
1953
  return {
1953
- guildID: response.guild_id,
1954
+ guildId: response.guild_id,
1954
1955
  prompts: response.prompts.map((prompt) => ({
1955
1956
  id: prompt.id,
1956
1957
  type: prompt.type,
1957
1958
  options: prompt.options.map((promptOption) => ({
1958
1959
  id: promptOption.id,
1959
- channelIDs: promptOption.channel_ids,
1960
- roleIDs: promptOption.role_ids,
1960
+ channelIds: promptOption.channel_ids,
1961
+ roleIds: promptOption.role_ids,
1961
1962
  emoji: promptOption.emoji !== undefined
1962
1963
  ? transformers_1.Emojis.emojiFromRaw(promptOption.emoji)
1963
1964
  : undefined,
1964
- emojiID: promptOption.emoji_id,
1965
+ emojiId: promptOption.emoji_id,
1965
1966
  emojiName: promptOption.emoji_name,
1966
1967
  emojiAnimated: promptOption.emoji_animated,
1967
1968
  title: promptOption.title,
@@ -1972,14 +1973,14 @@ class Client extends node_events_1.default {
1972
1973
  required: prompt.required,
1973
1974
  inOnboarding: prompt.in_onboarding,
1974
1975
  })),
1975
- defaultChannelIDs: response.default_channel_ids,
1976
+ defaultChannelIds: response.default_channel_ids,
1976
1977
  enabled: response.enabled,
1977
1978
  mode: response.mode,
1978
1979
  };
1979
1980
  }
1980
1981
  /** https://discord.com/developers/docs/resources/guild#get-guild-preview */
1981
- async getGuildPreview(guildID) {
1982
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPreview(guildID));
1982
+ async getGuildPreview(guildId) {
1983
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPreview(guildId));
1983
1984
  return {
1984
1985
  id: response.id,
1985
1986
  name: response.name,
@@ -1995,8 +1996,8 @@ class Client extends node_events_1.default {
1995
1996
  };
1996
1997
  }
1997
1998
  /** https://discord.com/developers/docs/resources/guild#get-guild-prune-count */
1998
- getGuildPruneCount(guildID, options) {
1999
- return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPrune(guildID), {
1999
+ getGuildPruneCount(guildId, options) {
2000
+ return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildPrune(guildId), {
2000
2001
  query: {
2001
2002
  days: options.days,
2002
2003
  include_roles: options.includeRoles,
@@ -2004,18 +2005,18 @@ class Client extends node_events_1.default {
2004
2005
  });
2005
2006
  }
2006
2007
  /** https://discord.com/developers/docs/resources/guild#get-guild-role */
2007
- async getGuildRole(guildID, roleID) {
2008
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildRole(guildID, roleID));
2008
+ async getGuildRole(guildId, roleId) {
2009
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildRole(guildId, roleId));
2009
2010
  return transformers_1.Roles.roleFromRaw(response);
2010
2011
  }
2011
2012
  /** https://discord.com/developers/docs/resources/guild#get-guild-roles */
2012
- async getGuildRoles(guildID) {
2013
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildRoles(guildID));
2013
+ async getGuildRoles(guildId) {
2014
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildRoles(guildId));
2014
2015
  return response.map((role) => transformers_1.Roles.roleFromRaw(role));
2015
2016
  }
2016
2017
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild */
2017
- async getGuildScheduledEvents(guildID, options) {
2018
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvents(guildID), {
2018
+ async getGuildScheduledEvents(guildId, options) {
2019
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvents(guildId), {
2019
2020
  query: {
2020
2021
  with_user_count: options?.withUserCount,
2021
2022
  },
@@ -2023,8 +2024,8 @@ class Client extends node_events_1.default {
2023
2024
  return response.map((guildScheduledEvent) => transformers_1.GuildScheduledEvents.guildScheduledEventFromRaw(guildScheduledEvent));
2024
2025
  }
2025
2026
  /** https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users */
2026
- async getGuildScheduledEventUsers(guildID, guildScheduledEventID, options) {
2027
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvent(guildID, guildScheduledEventID), {
2027
+ async getGuildScheduledEventUsers(guildId, guildScheduledEventId, options) {
2028
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildScheduledEvent(guildId, guildScheduledEventId), {
2028
2029
  query: {
2029
2030
  limit: options?.limit,
2030
2031
  with_member: options?.withMember,
@@ -2033,7 +2034,7 @@ class Client extends node_events_1.default {
2033
2034
  },
2034
2035
  });
2035
2036
  return response.map((guildScheduledEventUser) => ({
2036
- guildScheduledEventID: guildScheduledEventUser.guild_scheduled_event_id,
2037
+ guildScheduledEventId: guildScheduledEventUser.guild_scheduled_event_id,
2037
2038
  user: transformers_1.Users.userFromRaw(guildScheduledEventUser.user),
2038
2039
  member: guildScheduledEventUser.member !== undefined
2039
2040
  ? transformers_1.Guilds.guildMemberFromRaw(guildScheduledEventUser.member)
@@ -2041,43 +2042,43 @@ class Client extends node_events_1.default {
2041
2042
  }));
2042
2043
  }
2043
2044
  /** https://discord.com/developers/docs/resources/sticker#get-guild-sticker */
2044
- async getGuildSticker(guildID, stickerID) {
2045
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSticker(guildID, stickerID));
2045
+ async getGuildSticker(guildId, stickerId) {
2046
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSticker(guildId, stickerId));
2046
2047
  return transformers_1.Stickers.stickerFromRaw(response);
2047
2048
  }
2048
2049
  /** https://discord.com/developers/docs/resources/sticker#list-guild-stickers */
2049
- async getGuildStickers(guildID) {
2050
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildStickers(guildID));
2050
+ async getGuildStickers(guildId) {
2051
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildStickers(guildId));
2051
2052
  return response.map((sticker) => transformers_1.Stickers.stickerFromRaw(sticker));
2052
2053
  }
2053
2054
  /** https://discord.com/developers/docs/resources/soundboard#get-guild-soundboard-sound */
2054
- async getGuildSoundboardSound(guildID, soundID) {
2055
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSound(guildID, soundID));
2055
+ async getGuildSoundboardSound(guildId, soundId) {
2056
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSound(guildId, soundId));
2056
2057
  return transformers_1.Soundboards.soundboardSoundFromRaw(response);
2057
2058
  }
2058
- async getGuildSoundboardSounds(guildID) {
2059
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSounds(guildID));
2059
+ async getGuildSoundboardSounds(guildId) {
2060
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildSoundboardSounds(guildId));
2060
2061
  return {
2061
2062
  items: response.items.map((sound) => transformers_1.Soundboards.soundboardSoundFromRaw(sound)),
2062
2063
  };
2063
2064
  }
2064
2065
  /** https://discord.com/developers/docs/resources/guild-template#get-guild-template */
2065
- async getGuildTemplate(guildID, code) {
2066
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplate(guildID, code));
2066
+ async getGuildTemplate(guildId, code) {
2067
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplate(guildId, code));
2067
2068
  return transformers_1.GuildTemplates.guildTemplateFromRaw(response);
2068
2069
  }
2069
2070
  /** https://discord.com/developers/docs/resources/guild-template#get-guild-templates */
2070
- async getGuildTemplates(guildID) {
2071
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplates(guildID));
2071
+ async getGuildTemplates(guildId) {
2072
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildTemplates(guildId));
2072
2073
  return response.map((guildTemplate) => transformers_1.GuildTemplates.guildTemplateFromRaw(guildTemplate));
2073
2074
  }
2074
2075
  /** https://discord.com/developers/docs/resources/guild#get-guild-vanity-url */
2075
- getGuildVanityURL(guildID) {
2076
- return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVanityURL(guildID));
2076
+ getGuildVanityURL(guildId) {
2077
+ return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVanityURL(guildId));
2077
2078
  }
2078
2079
  /** https://discord.com/developers/docs/resources/guild#get-guild-voice-regions */
2079
- async getGuildVoiceRegions(guildID) {
2080
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceRegions(guildID));
2080
+ async getGuildVoiceRegions(guildId) {
2081
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceRegions(guildId));
2081
2082
  return response.map((voiceRegion) => ({
2082
2083
  id: voiceRegion.id,
2083
2084
  name: voiceRegion.name,
@@ -2087,21 +2088,21 @@ class Client extends node_events_1.default {
2087
2088
  }));
2088
2089
  }
2089
2090
  /** https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen */
2090
- async getGuildWelcomeScreen(guildID) {
2091
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWelcomeScreen(guildID));
2091
+ async getGuildWelcomeScreen(guildId) {
2092
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWelcomeScreen(guildId));
2092
2093
  return {
2093
2094
  description: response.description,
2094
2095
  welcomeChannels: response.welcome_channels.map((welcomeScreenChannel) => ({
2095
- channelID: welcomeScreenChannel.channel_id,
2096
+ channelId: welcomeScreenChannel.channel_id,
2096
2097
  description: welcomeScreenChannel.description,
2097
- emojiID: welcomeScreenChannel.emoji_id,
2098
+ emojiId: welcomeScreenChannel.emoji_id,
2098
2099
  emojiName: welcomeScreenChannel.emoji_name,
2099
2100
  })),
2100
2101
  };
2101
2102
  }
2102
2103
  /** https://discord.com/developers/docs/resources/guild#get-guild-widget */
2103
- async getGuildWidget(guildID) {
2104
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetJSON(guildID));
2104
+ async getGuildWidget(guildId) {
2105
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetJSON(guildId));
2105
2106
  return {
2106
2107
  id: response.id,
2107
2108
  name: response.name,
@@ -2112,35 +2113,35 @@ class Client extends node_events_1.default {
2112
2113
  };
2113
2114
  }
2114
2115
  /** https://discord.com/developers/docs/resources/guild#get-guild-widget-image */
2115
- getGuildWidgetImage(guildID, options) {
2116
- return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetImage(guildID), {
2116
+ getGuildWidgetImage(guildId, options) {
2117
+ return this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetImage(guildId), {
2117
2118
  query: {
2118
2119
  style: options?.style,
2119
2120
  },
2120
2121
  });
2121
2122
  }
2122
2123
  /** https://discord.com/developers/docs/resources/guild#get-guild-widget-settings */
2123
- async getGuildWidgetSettings(guildID) {
2124
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetSettings(guildID));
2124
+ async getGuildWidgetSettings(guildId) {
2125
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWidgetSettings(guildId));
2125
2126
  return {
2126
2127
  enabled: response.enabled,
2127
- channelID: response.channel_id,
2128
+ channelId: response.channel_id,
2128
2129
  };
2129
2130
  }
2130
2131
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message */
2131
- async getInteractionFollowupMessage(applicationID, interactionToken, messageID, options) {
2132
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationID, interactionToken, messageID), {
2132
+ async getInteractionFollowupMessage(applicationId, interactionToken, messageId, options) {
2133
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationId, interactionToken, messageId), {
2133
2134
  query: {
2134
- thread_id: options?.threadID,
2135
+ thread_id: options?.threadId,
2135
2136
  },
2136
2137
  });
2137
2138
  return transformers_1.Messages.messageFromRaw(response);
2138
2139
  }
2139
2140
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response */
2140
- async getInteractionResponse(applicationID, interactionToken, options) {
2141
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationID, interactionToken), {
2141
+ async getInteractionResponse(applicationId, interactionToken, options) {
2142
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(applicationId, interactionToken), {
2142
2143
  query: {
2143
- thread_id: options?.threadID,
2144
+ thread_id: options?.threadId,
2144
2145
  },
2145
2146
  });
2146
2147
  return transformers_1.Messages.messageFromRaw(response);
@@ -2150,14 +2151,14 @@ class Client extends node_events_1.default {
2150
2151
  const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.invite(code), {
2151
2152
  query: {
2152
2153
  with_counts: options?.withCounts,
2153
- guild_scheduled_event_id: options?.guildScheduledEventID,
2154
+ guild_scheduled_event_id: options?.guildScheduledEventId,
2154
2155
  },
2155
2156
  });
2156
2157
  return transformers_1.Invites.inviteFromRaw(response);
2157
2158
  }
2158
2159
  /** https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads */
2159
- async getJoinedPrivateArchivedThreads(channelID, options) {
2160
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelID, "private", true), {
2160
+ async getJoinedPrivateArchivedThreads(channelId, options) {
2161
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelThreads(channelId, "private", true), {
2161
2162
  query: {
2162
2163
  before: options?.before,
2163
2164
  limit: options?.limit,
@@ -2170,18 +2171,18 @@ class Client extends node_events_1.default {
2170
2171
  };
2171
2172
  }
2172
2173
  /** https://discord.com/developers/docs/resources/lobby#get-lobby */
2173
- async getLobby(lobbyID) {
2174
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.lobby(lobbyID));
2174
+ async getLobby(lobbyId) {
2175
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.lobby(lobbyId));
2175
2176
  return transformers_1.Lobbies.lobbyFromRaw(response);
2176
2177
  }
2177
2178
  /** https://discord.com/developers/docs/resources/message#get-channel-message */
2178
- async getMessage(channelID, messageID) {
2179
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessage(channelID, messageID));
2179
+ async getMessage(channelId, messageId) {
2180
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessage(channelId, messageId));
2180
2181
  return transformers_1.Messages.messageFromRaw(response);
2181
2182
  }
2182
2183
  /** https://discord.com/developers/docs/resources/message#get-reactions */
2183
- async getMessageReactions(channelID, messageID, emoji, options) {
2184
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessageAllReactions(channelID, messageID, emoji), {
2184
+ async getMessageReactions(channelId, messageId, emoji, options) {
2185
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessageAllReactions(channelId, messageId, emoji), {
2185
2186
  query: {
2186
2187
  type: options?.type,
2187
2188
  after: options?.after,
@@ -2191,8 +2192,8 @@ class Client extends node_events_1.default {
2191
2192
  return response.map((user) => transformers_1.Users.userFromRaw(user));
2192
2193
  }
2193
2194
  /** https://discord.com/developers/docs/resources/message#get-channel-messages */
2194
- async getMessages(channelID, options) {
2195
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessages(channelID), {
2195
+ async getMessages(channelId, options) {
2196
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessages(channelId), {
2196
2197
  query: {
2197
2198
  around: options.around,
2198
2199
  before: options.before,
@@ -2220,8 +2221,8 @@ class Client extends node_events_1.default {
2220
2221
  };
2221
2222
  }
2222
2223
  /** https://discord.com/developers/docs/resources/channel#get-pinned-messages */
2223
- async getPinnedMessages(channelID, options) {
2224
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelPins(channelID), {
2224
+ async getPinnedMessages(channelId, options) {
2225
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelPins(channelId), {
2225
2226
  query: options,
2226
2227
  });
2227
2228
  return {
@@ -2233,8 +2234,8 @@ class Client extends node_events_1.default {
2233
2234
  };
2234
2235
  }
2235
2236
  /** https://discord.com/developers/docs/resources/poll#get-answer-voters */
2236
- async getPollAnswerVoters(channelID, messageID, answerID, options) {
2237
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.pollAnswerVoters(channelID, messageID, answerID), {
2237
+ async getPollAnswerVoters(channelId, messageId, answerId, options) {
2238
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.pollAnswerVoters(channelId, messageId, answerId), {
2238
2239
  query: {
2239
2240
  after: options?.after,
2240
2241
  limit: options?.limit,
@@ -2245,43 +2246,43 @@ class Client extends node_events_1.default {
2245
2246
  };
2246
2247
  }
2247
2248
  /** https://discord.com/developers/docs/resources/sku#list-skus */
2248
- async getSKUs(applicationID) {
2249
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationSKUs(applicationID));
2249
+ async getSKUs(applicationId) {
2250
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.applicationSKUs(applicationId));
2250
2251
  return response.map((sku) => transformers_1.SKUs.skuFromRaw(sku));
2251
2252
  }
2252
2253
  /** https://discord.com/developers/docs/resources/subscription#get-sku-subscription */
2253
- async getSKUSubscription(skuID, subscriptionID) {
2254
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.skuSubscription(skuID, subscriptionID));
2254
+ async getSKUSubscription(skuId, subscriptionId) {
2255
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.skuSubscription(skuId, subscriptionId));
2255
2256
  return transformers_1.Subscriptions.subscriptionFromRaw(response);
2256
2257
  }
2257
2258
  /** https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions */
2258
- async getSKUSubscriptions(skuID, options) {
2259
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.skuSubscriptions(skuID), {
2259
+ async getSKUSubscriptions(skuId, options) {
2260
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.skuSubscriptions(skuId), {
2260
2261
  query: {
2261
2262
  before: options.before,
2262
2263
  after: options.after,
2263
2264
  limit: options.limit,
2264
- user_id: options.userID,
2265
+ user_id: options.userId,
2265
2266
  },
2266
2267
  });
2267
2268
  return response.map((subscription) => transformers_1.Subscriptions.subscriptionFromRaw(subscription));
2268
2269
  }
2269
2270
  /** https://discord.com/developers/docs/resources/stage-instance#get-stage-instance */
2270
- async getStageInstance(channelID) {
2271
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.stageInstance(channelID));
2271
+ async getStageInstance(channelId) {
2272
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.stageInstance(channelId));
2272
2273
  return transformers_1.StageInstances.stageInstanceFromRaw(response);
2273
2274
  }
2274
2275
  /** https://discord.com/developers/docs/resources/sticker#get-sticker-pack */
2275
- async getStickerPack(packID) {
2276
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.stickerPack(packID));
2276
+ async getStickerPack(packId) {
2277
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.stickerPack(packId));
2277
2278
  return {
2278
2279
  id: response.id,
2279
2280
  stickers: response.stickers.map((sticker) => transformers_1.Stickers.stickerFromRaw(sticker)),
2280
2281
  name: response.name,
2281
- skuID: response.sku_id,
2282
- coverStickerID: response.cover_sticker_id,
2282
+ skuId: response.sku_id,
2283
+ coverStickerId: response.cover_sticker_id,
2283
2284
  description: response.description,
2284
- bannerAssetID: response.banner_asset_id,
2285
+ bannerAssetId: response.banner_asset_id,
2285
2286
  };
2286
2287
  }
2287
2288
  /** https://discord.com/developers/docs/resources/sticker#list-sticker-packs */
@@ -2292,16 +2293,16 @@ class Client extends node_events_1.default {
2292
2293
  id: stickerPack.id,
2293
2294
  stickers: stickerPack.stickers.map((sticker) => transformers_1.Stickers.stickerFromRaw(sticker)),
2294
2295
  name: stickerPack.name,
2295
- skuID: stickerPack.sku_id,
2296
- coverStickerID: stickerPack.cover_sticker_id,
2296
+ skuId: stickerPack.sku_id,
2297
+ coverStickerId: stickerPack.cover_sticker_id,
2297
2298
  description: stickerPack.description,
2298
- bannerAssetID: stickerPack.banner_asset_id,
2299
+ bannerAssetId: stickerPack.banner_asset_id,
2299
2300
  })),
2300
2301
  };
2301
2302
  }
2302
2303
  /** https://discord.com/developers/docs/resources/channel#get-thread-member */
2303
- async getThreadMember(channelID, userID, options) {
2304
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelID, userID), {
2304
+ async getThreadMember(channelId, userId, options) {
2305
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelId, userId), {
2305
2306
  query: {
2306
2307
  with_member: options?.withMember,
2307
2308
  },
@@ -2309,8 +2310,8 @@ class Client extends node_events_1.default {
2309
2310
  return transformers_1.Channels.threadMemberFromRaw(response);
2310
2311
  }
2311
2312
  /** https://discord.com/developers/docs/resources/channel#list-thread-members */
2312
- async getThreadMembers(channelID, options) {
2313
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelID), {
2313
+ async getThreadMembers(channelId, options) {
2314
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.threadMembers(channelId), {
2314
2315
  query: {
2315
2316
  with_member: options?.withMember,
2316
2317
  after: options?.after,
@@ -2320,8 +2321,8 @@ class Client extends node_events_1.default {
2320
2321
  return response.map((threadMember) => transformers_1.Channels.threadMemberFromRaw(threadMember));
2321
2322
  }
2322
2323
  /** https://discord.com/developers/docs/resources/user#get-user */
2323
- async getUser(userID) {
2324
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.user(userID));
2324
+ async getUser(userId) {
2325
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.user(userId));
2325
2326
  return transformers_1.Users.userFromRaw(response);
2326
2327
  }
2327
2328
  /** https://discord.com/developers/docs/resources/voice#list-voice-regions */
@@ -2336,106 +2337,106 @@ class Client extends node_events_1.default {
2336
2337
  }));
2337
2338
  }
2338
2339
  /** https://discord.com/developers/docs/resources/voice#get-user-voice-state */
2339
- async getUserVoiceState(guildID, userID) {
2340
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceState(guildID, userID));
2340
+ async getUserVoiceState(guildId, userId) {
2341
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildVoiceState(guildId, userId));
2341
2342
  return transformers_1.Voice.voiceStateFromRaw(response);
2342
2343
  }
2343
2344
  /** https://discord.com/developers/docs/resources/webhook#get-webhook-message */
2344
- async getWebhookMessage(webhookID, webhookToken, messageID, options) {
2345
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(webhookID, webhookToken, messageID), {
2345
+ async getWebhookMessage(webhookId, webhookToken, messageId, options) {
2346
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.webhookMessage(webhookId, webhookToken, messageId), {
2346
2347
  query: {
2347
- thread_id: options?.threadID,
2348
+ thread_id: options?.threadId,
2348
2349
  },
2349
2350
  });
2350
2351
  return transformers_1.Messages.messageFromRaw(response);
2351
2352
  }
2352
2353
  /** https://discord.com/developers/docs/resources/webhook#get-guild-webhooks */
2353
- async getWebhooks(guildID) {
2354
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWebhooks(guildID));
2354
+ async getWebhooks(guildId) {
2355
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildWebhooks(guildId));
2355
2356
  return response.map((webhook) => transformers_1.Webhooks.webhookFromRaw(webhook));
2356
2357
  }
2357
2358
  /** https://discord.com/developers/docs/resources/channel#join-thread */
2358
- joinThread(channelID) {
2359
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelID));
2359
+ joinThread(channelId) {
2360
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.threadMembers(channelId));
2360
2361
  }
2361
2362
  /** https://discord.com/developers/docs/topics/gateway-events#update-voice-state */
2362
- joinVoiceChannel(guildID, channelID, options) {
2363
- this.shards.get(this.guildShardMap[guildID]).updateVoiceState({
2364
- guildID,
2365
- channelID,
2363
+ joinVoiceChannel(guildId, channelId, options) {
2364
+ this.shards.get(this.guildShardMap[guildId]).updateVoiceState({
2365
+ guildId,
2366
+ channelId,
2366
2367
  selfMute: !!options?.selfMute,
2367
2368
  selfDeaf: !!options?.selfDeaf,
2368
2369
  });
2369
2370
  }
2370
2371
  /** https://discord.com/developers/docs/resources/user#leave-guild */
2371
- leaveGuild(guildID) {
2372
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.userGuild(guildID));
2372
+ leaveGuild(guildId) {
2373
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.userGuild(guildId));
2373
2374
  }
2374
2375
  /** https://discord.com/developers/docs/resources/lobby#leave-lobby */
2375
- leaveLobby(lobbyID) {
2376
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.lobbyMember(lobbyID));
2376
+ leaveLobby(lobbyId) {
2377
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.lobbyMember(lobbyId));
2377
2378
  }
2378
2379
  /** https://discord.com/developers/docs/resources/channel#leave-thread */
2379
- leaveThread(channelID) {
2380
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelID, "@me"));
2380
+ leaveThread(channelId) {
2381
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelId, "@me"));
2381
2382
  }
2382
2383
  /** https://discord.com/developers/docs/topics/gateway-events#update-voice-state */
2383
- leaveVoiceChannel(guildID) {
2384
- this.shards.get(this.guildShardMap[guildID]).updateVoiceState({
2385
- guildID,
2386
- channelID: null,
2384
+ leaveVoiceChannel(guildId) {
2385
+ this.shards.get(this.guildShardMap[guildId]).updateVoiceState({
2386
+ guildId,
2387
+ channelId: null,
2387
2388
  selfMute: false,
2388
2389
  selfDeaf: false,
2389
2390
  });
2390
2391
  }
2391
2392
  /** discord.com/developers/docs/resources/lobby#link-channel-to-lobby */
2392
- async linkChannel(lobbyID, options) {
2393
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.lobbyChannelLinking(lobbyID), {
2393
+ async linkChannel(lobbyId, options) {
2394
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.lobbyChannelLinking(lobbyId), {
2394
2395
  json: {
2395
- channel_id: options.channelID,
2396
+ channel_id: options.channelId,
2396
2397
  },
2397
2398
  });
2398
2399
  return transformers_1.Lobbies.lobbyFromRaw(response);
2399
2400
  }
2400
2401
  /** https://discord.com/developers/docs/resources/channel#pin-message */
2401
- pinMessage(channelID, messageID, reason) {
2402
- this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPin(channelID, messageID), {
2402
+ pinMessage(channelId, messageId, reason) {
2403
+ this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.channelPin(channelId, messageId), {
2403
2404
  reason,
2404
2405
  });
2405
2406
  }
2406
2407
  /** https://discord.com/developers/docs/resources/guild#remove-guild-ban */
2407
- removeBan(guildID, userID, reason) {
2408
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildBan(guildID, userID), {
2408
+ removeBan(guildId, userId, reason) {
2409
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildBan(guildId, userId), {
2409
2410
  reason,
2410
2411
  });
2411
2412
  }
2412
2413
  /** https://discord.com/developers/docs/resources/channel#group-dm-remove-recipient */
2413
- removeGroupRecipient(channelID, userID) {
2414
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelRecipient(channelID, userID));
2414
+ removeGroupRecipient(channelId, userId) {
2415
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelRecipient(channelId, userId));
2415
2416
  }
2416
2417
  /** https://discord.com/developers/docs/resources/guild#remove-guild-member */
2417
- removeGuildMember(guildID, userID, reason) {
2418
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMember(guildID, userID), {
2418
+ removeGuildMember(guildId, userId, reason) {
2419
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMember(guildId, userId), {
2419
2420
  reason,
2420
2421
  });
2421
2422
  }
2422
2423
  /** https://discord.com/developers/docs/resources/guild#remove-guild-member-role */
2423
- removeGuildMemberRole(guildID, userID, roleID, reason) {
2424
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMemberRole(guildID, userID, roleID), {
2424
+ removeGuildMemberRole(guildId, userId, roleId, reason) {
2425
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guildMemberRole(guildId, userId, roleId), {
2425
2426
  reason,
2426
2427
  });
2427
2428
  }
2428
2429
  /** https://discord.com/developers/docs/resources/lobby#remove-a-member-from-a-lobby */
2429
- removeLobbyMember(lobbyID, userID) {
2430
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.lobbyMember(lobbyID, userID));
2430
+ removeLobbyMember(lobbyId, userId) {
2431
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.lobbyMember(lobbyId, userId));
2431
2432
  }
2432
2433
  /** https://discord.com/developers/docs/resources/channel#remove-thread-member */
2433
- removeThreadMember(channelID, userID) {
2434
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelID, userID));
2434
+ removeThreadMember(channelId, userId) {
2435
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.threadMembers(channelId, userId));
2435
2436
  }
2436
2437
  /** https://discord.com/developers/docs/resources/guild#search-guild-members */
2437
- async searchGuildMembers(guildID, options) {
2438
- const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembersSearch(guildID), {
2438
+ async searchGuildMembers(guildId, options) {
2439
+ const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.guildMembersSearch(guildId), {
2439
2440
  query: {
2440
2441
  query: options.query,
2441
2442
  limit: options.limit,
@@ -2444,11 +2445,11 @@ class Client extends node_events_1.default {
2444
2445
  return response.map((guildMember) => transformers_1.Guilds.guildMemberFromRaw(guildMember));
2445
2446
  }
2446
2447
  /** https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound */
2447
- sendSoundboardSound(channelID, options) {
2448
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.sendSoundboardSound(channelID), {
2448
+ sendSoundboardSound(channelId, options) {
2449
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.sendSoundboardSound(channelId), {
2449
2450
  json: {
2450
- sound_id: options.soundID,
2451
- source_guild_id: options.sourceGuildID,
2451
+ sound_id: options.soundId,
2452
+ source_guild_id: options.sourceGuildId,
2452
2453
  },
2453
2454
  });
2454
2455
  }
@@ -2457,27 +2458,27 @@ class Client extends node_events_1.default {
2457
2458
  this.shards.forEach((shard) => shard.updatePresence(options));
2458
2459
  }
2459
2460
  /** https://discord.com/developers/docs/resources/guild-template#sync-guild-template */
2460
- async syncGuildTemplate(guildID, code) {
2461
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildTemplate(guildID, code));
2461
+ async syncGuildTemplate(guildId, code) {
2462
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.guildTemplate(guildId, code));
2462
2463
  return transformers_1.GuildTemplates.guildTemplateFromRaw(response);
2463
2464
  }
2464
2465
  /** https://discord.com/developers/docs/resources/channel#trigger-typing-indicator */
2465
- triggerTypingIndicator(channelID) {
2466
- this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelTyping(channelID));
2466
+ triggerTypingIndicator(channelId) {
2467
+ this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelTyping(channelId));
2467
2468
  }
2468
2469
  /** https://discord.com/developers/docs/resources/lobby#unlink-channel-from-lobby */
2469
- async unlinkChannel(lobbyID) {
2470
- const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.lobbyChannelLinking(lobbyID));
2470
+ async unlinkChannel(lobbyId) {
2471
+ const response = await this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.lobbyChannelLinking(lobbyId));
2471
2472
  return transformers_1.Lobbies.lobbyFromRaw(response);
2472
2473
  }
2473
2474
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
2474
- async updateApplicationRoleConnectionMetadataRecords(applicationID) {
2475
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationID));
2475
+ async updateApplicationRoleConnectionMetadataRecords(applicationId) {
2476
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.applicationRoleConnectionMetadata(applicationId));
2476
2477
  return response.map((applicationRoleConnectionMetadata) => transformers_1.ApplicationRoleConnectionMetadatas.applicationRoleConnectionMetadataFromRaw(applicationRoleConnectionMetadata));
2477
2478
  }
2478
2479
  /** https://discord.com/developers/docs/resources/user#update-current-user-application-role-connection */
2479
- async updateCurrentApplicationRoleConnection(applicationID, options) {
2480
- const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.userApplicationRoleConnection(applicationID), {
2480
+ async updateCurrentApplicationRoleConnection(applicationId, options) {
2481
+ const response = await this.rest.request(rest_1.RESTMethods.Put, rest_1.Endpoints.userApplicationRoleConnection(applicationId), {
2481
2482
  json: {
2482
2483
  platform_name: options.platformName,
2483
2484
  platform_username: options.platformUsername,
@@ -2493,8 +2494,8 @@ class Client extends node_events_1.default {
2493
2494
  };
2494
2495
  }
2495
2496
  /** https://discord.com/developers/docs/resources/channel#unpin-message */
2496
- unpinMessage(channelID, messageID, reason) {
2497
- this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPin(channelID, messageID), {
2497
+ unpinMessage(channelId, messageId, reason) {
2498
+ this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.channelPin(channelId, messageId), {
2498
2499
  reason,
2499
2500
  });
2500
2501
  }