disgroove 2.2.7-dev.fca4921 → 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 (80) hide show
  1. package/dist/lib/Client.d.ts +291 -254
  2. package/dist/lib/Client.js +554 -460
  3. package/dist/lib/constants.d.ts +29 -21
  4. package/dist/lib/constants.js +33 -24
  5. package/dist/lib/gateway/Shard.d.ts +5 -3
  6. package/dist/lib/gateway/Shard.js +183 -120
  7. package/dist/lib/index.d.ts +5 -1
  8. package/dist/lib/index.js +5 -1
  9. package/dist/lib/rest/Endpoints.d.ts +95 -91
  10. package/dist/lib/rest/Endpoints.js +111 -102
  11. package/dist/lib/rest/RequestManager.d.ts +1 -3
  12. package/dist/lib/transformers/ApplicationCommands.js +4 -4
  13. package/dist/lib/transformers/Applications.js +14 -6
  14. package/dist/lib/transformers/AuditLogs.js +10 -10
  15. package/dist/lib/transformers/AutoModeration.js +6 -6
  16. package/dist/lib/transformers/Channels.js +16 -16
  17. package/dist/lib/transformers/Components.d.ts +13 -3
  18. package/dist/lib/transformers/Components.js +283 -156
  19. package/dist/lib/transformers/Entitlements.d.ts +2 -2
  20. package/dist/lib/transformers/Entitlements.js +16 -16
  21. package/dist/lib/transformers/GuildScheduledEvents.js +8 -8
  22. package/dist/lib/transformers/GuildTemplates.js +4 -4
  23. package/dist/lib/transformers/Guilds.js +28 -28
  24. package/dist/lib/transformers/Interactions.js +300 -55
  25. package/dist/lib/transformers/Lobbies.d.ts +7 -0
  26. package/dist/lib/transformers/Lobbies.js +38 -0
  27. package/dist/lib/transformers/Messages.d.ts +4 -3
  28. package/dist/lib/transformers/Messages.js +36 -50
  29. package/dist/lib/transformers/Polls.js +2 -2
  30. package/dist/lib/transformers/Presences.js +6 -6
  31. package/dist/lib/transformers/Roles.js +8 -8
  32. package/dist/lib/transformers/SKUs.js +2 -2
  33. package/dist/lib/transformers/Soundboards.js +6 -6
  34. package/dist/lib/transformers/StageInstances.js +6 -6
  35. package/dist/lib/transformers/Stickers.js +3 -3
  36. package/dist/lib/transformers/Subscriptions.js +8 -8
  37. package/dist/lib/transformers/Teams.js +4 -4
  38. package/dist/lib/transformers/Users.js +6 -6
  39. package/dist/lib/transformers/Voice.js +8 -8
  40. package/dist/lib/transformers/Webhooks.js +6 -6
  41. package/dist/lib/transformers/index.d.ts +2 -1
  42. package/dist/lib/transformers/index.js +2 -1
  43. package/dist/lib/types/application-command.d.ts +9 -4
  44. package/dist/lib/types/application-role-connection-metadata.d.ts +1 -0
  45. package/dist/lib/types/application.d.ts +14 -9
  46. package/dist/lib/types/audit-log.d.ts +9 -5
  47. package/dist/lib/types/auto-moderation.d.ts +7 -3
  48. package/dist/lib/types/channel.d.ts +17 -23
  49. package/dist/lib/types/common.d.ts +2 -0
  50. package/dist/lib/types/components.d.ts +478 -0
  51. package/dist/lib/types/components.js +2 -0
  52. package/dist/lib/types/emoji.d.ts +1 -0
  53. package/dist/lib/types/entitlements.d.ts +5 -4
  54. package/dist/lib/types/gateway-events.d.ts +203 -130
  55. package/dist/lib/types/guild-scheduled-event.d.ts +10 -5
  56. package/dist/lib/types/guild-template.d.ts +3 -2
  57. package/dist/lib/types/guild.d.ts +40 -22
  58. package/dist/lib/types/interaction.d.ts +35 -18
  59. package/dist/lib/types/invite.d.ts +5 -2
  60. package/dist/lib/types/lobby.d.ts +31 -0
  61. package/dist/lib/types/lobby.js +2 -0
  62. package/dist/lib/types/message-components.d.ts +334 -118
  63. package/dist/lib/types/message.d.ts +30 -18
  64. package/dist/lib/types/poll.d.ts +7 -1
  65. package/dist/lib/types/role.d.ts +8 -5
  66. package/dist/lib/types/sku.d.ts +2 -1
  67. package/dist/lib/types/soundboard.d.ts +4 -3
  68. package/dist/lib/types/stage-instance.d.ts +4 -3
  69. package/dist/lib/types/sticker.d.ts +8 -5
  70. package/dist/lib/types/subscription.d.ts +6 -5
  71. package/dist/lib/types/team.d.ts +4 -2
  72. package/dist/lib/types/user.d.ts +10 -3
  73. package/dist/lib/types/voice.d.ts +6 -4
  74. package/dist/lib/types/webhook.d.ts +4 -3
  75. package/dist/lib/utils/CDN.d.ts +22 -22
  76. package/dist/lib/utils/CDN.js +22 -22
  77. package/dist/lib/utils/formatters.d.ts +7 -7
  78. package/dist/lib/utils/formatters.js +19 -19
  79. package/dist/package.json +4 -4
  80. package/package.json +4 -4
@@ -51,54 +51,40 @@ class Messages {
51
51
  static componentsFromRaw(components) {
52
52
  return components.map((component) => {
53
53
  switch (component.type) {
54
- case constants_1.ComponentTypes.ActionRow: {
54
+ case constants_1.ComponentTypes.ActionRow:
55
55
  return Components_js_1.Components.actionRowFromRaw(component);
56
- }
57
- case constants_1.ComponentTypes.TextDisplay: {
56
+ case constants_1.ComponentTypes.Section:
57
+ return Components_js_1.Components.sectionFromRaw(component);
58
+ case constants_1.ComponentTypes.TextDisplay:
58
59
  return Components_js_1.Components.textDisplayFromRaw(component);
59
- }
60
- case constants_1.ComponentTypes.Container: {
61
- return Components_js_1.Components.containerFromRaw(component);
62
- }
63
- case constants_1.ComponentTypes.File: {
60
+ case constants_1.ComponentTypes.MediaGallery:
61
+ return Components_js_1.Components.mediaGalleryFromRaw(component);
62
+ case constants_1.ComponentTypes.File:
64
63
  return Components_js_1.Components.fileFromRaw(component);
65
- }
66
- case constants_1.ComponentTypes.Section: {
67
- return Components_js_1.Components.sectionFromRaw(component);
68
- }
69
- case constants_1.ComponentTypes.Separator: {
64
+ case constants_1.ComponentTypes.Separator:
70
65
  return Components_js_1.Components.separatorFromRaw(component);
71
- }
72
- case constants_1.ComponentTypes.MediaGallery: {
73
- return Components_js_1.Components.mediaGalleryFromRaw(component);
74
- }
66
+ case constants_1.ComponentTypes.Container:
67
+ return Components_js_1.Components.containerFromRaw(component);
75
68
  }
76
69
  });
77
70
  }
78
71
  static componentsToRaw(components) {
79
72
  return components.map((component) => {
80
73
  switch (component.type) {
81
- case constants_1.ComponentTypes.ActionRow: {
74
+ case constants_1.ComponentTypes.ActionRow:
82
75
  return Components_js_1.Components.actionRowToRaw(component);
83
- }
84
- case constants_1.ComponentTypes.TextDisplay: {
76
+ case constants_1.ComponentTypes.Section:
77
+ return Components_js_1.Components.sectionToRaw(component);
78
+ case constants_1.ComponentTypes.TextDisplay:
85
79
  return Components_js_1.Components.textDisplayToRaw(component);
86
- }
87
- case constants_1.ComponentTypes.Container: {
88
- return Components_js_1.Components.containerToRaw(component);
89
- }
90
- case constants_1.ComponentTypes.File: {
80
+ case constants_1.ComponentTypes.MediaGallery:
81
+ return Components_js_1.Components.mediaGalleryToRaw(component);
82
+ case constants_1.ComponentTypes.File:
91
83
  return Components_js_1.Components.fileToRaw(component);
92
- }
93
- case constants_1.ComponentTypes.Section: {
94
- return Components_js_1.Components.sectionToRaw(component);
95
- }
96
- case constants_1.ComponentTypes.Separator: {
84
+ case constants_1.ComponentTypes.Separator:
97
85
  return Components_js_1.Components.separatorToRaw(component);
98
- }
99
- case constants_1.ComponentTypes.MediaGallery: {
100
- return Components_js_1.Components.mediaGalleryToRaw(component);
101
- }
86
+ case constants_1.ComponentTypes.Container:
87
+ return Components_js_1.Components.containerToRaw(component);
102
88
  }
103
89
  });
104
90
  }
@@ -209,7 +195,7 @@ class Messages {
209
195
  static messageFromRaw(message) {
210
196
  return {
211
197
  id: message.id,
212
- channelID: message.channel_id,
198
+ channelId: message.channel_id,
213
199
  author: Users_1.Users.userFromRaw(message.author),
214
200
  content: message.content,
215
201
  timestamp: message.timestamp,
@@ -220,7 +206,7 @@ class Messages {
220
206
  mentionRoles: message.mention_roles,
221
207
  mentionChannels: message.mention_channels?.map((channelMention) => ({
222
208
  id: channelMention.id,
223
- guildID: channelMention.guild_id,
209
+ guildId: channelMention.guild_id,
224
210
  type: channelMention.type,
225
211
  name: channelMention.name,
226
212
  })),
@@ -236,19 +222,19 @@ class Messages {
236
222
  })),
237
223
  nonce: message.nonce,
238
224
  pinned: message.pinned,
239
- webhookID: message.webhook_id,
225
+ webhookId: message.webhook_id,
240
226
  type: message.type,
241
227
  activity: message.activity,
242
228
  application: message.application !== undefined
243
229
  ? Applications_1.Applications.applicationFromRaw(message.application)
244
230
  : undefined,
245
- applicationID: message.application_id,
231
+ applicationId: message.application_id,
246
232
  flags: message.flags,
247
233
  messageReference: message.message_reference !== undefined
248
234
  ? {
249
- messageID: message.message_reference.message_id,
250
- channelID: message.message_reference.channel_id,
251
- guildID: message.message_reference.guild_id,
235
+ messageId: message.message_reference.message_id,
236
+ channelId: message.message_reference.channel_id,
237
+ guildId: message.message_reference.guild_id,
252
238
  failIfNotExists: message.message_reference.fail_if_not_exists,
253
239
  }
254
240
  : undefined,
@@ -299,7 +285,7 @@ class Messages {
299
285
  position: message.position,
300
286
  roleSubscriptionData: message.role_subscription_data !== undefined
301
287
  ? {
302
- roleSubscriptionListingID: message.role_subscription_data.role_subscription_listing_id,
288
+ roleSubscriptionListingId: message.role_subscription_data.role_subscription_listing_id,
303
289
  tierName: message.role_subscription_data.tier_name,
304
290
  totalMonthsSubscribed: message.role_subscription_data.total_months_subscribed,
305
291
  isRenewal: message.role_subscription_data.is_renewal,
@@ -317,7 +303,7 @@ class Messages {
317
303
  static messageToRaw(message) {
318
304
  return {
319
305
  id: message.id,
320
- channel_id: message.channelID,
306
+ channel_id: message.channelId,
321
307
  author: Users_1.Users.userToRaw(message.author),
322
308
  content: message.content,
323
309
  timestamp: message.timestamp,
@@ -328,7 +314,7 @@ class Messages {
328
314
  mention_roles: message.mentionRoles,
329
315
  mention_channels: message.mentionChannels?.map((channelMention) => ({
330
316
  id: channelMention.id,
331
- guild_id: channelMention.guildID,
317
+ guild_id: channelMention.guildId,
332
318
  type: channelMention.type,
333
319
  name: channelMention.name,
334
320
  })),
@@ -344,19 +330,19 @@ class Messages {
344
330
  })),
345
331
  nonce: message.nonce,
346
332
  pinned: message.pinned,
347
- webhook_id: message.webhookID,
333
+ webhook_id: message.webhookId,
348
334
  type: message.type,
349
335
  activity: message.activity,
350
336
  application: message.application !== undefined
351
337
  ? Applications_1.Applications.applicationToRaw(message.application)
352
338
  : undefined,
353
- application_id: message.applicationID,
339
+ application_id: message.applicationId,
354
340
  flags: message.flags,
355
341
  message_reference: message.messageReference !== undefined
356
342
  ? {
357
- message_id: message.messageReference.messageID,
358
- channel_id: message.messageReference.channelID,
359
- guild_id: message.messageReference.guildID,
343
+ message_id: message.messageReference.messageId,
344
+ channel_id: message.messageReference.channelId,
345
+ guild_id: message.messageReference.guildId,
360
346
  fail_if_not_exists: message.messageReference.failIfNotExists,
361
347
  }
362
348
  : undefined,
@@ -407,7 +393,7 @@ class Messages {
407
393
  position: message.position,
408
394
  role_subscription_data: message.roleSubscriptionData !== undefined
409
395
  ? {
410
- role_subscription_listing_id: message.roleSubscriptionData.roleSubscriptionListingID,
396
+ role_subscription_listing_id: message.roleSubscriptionData.roleSubscriptionListingId,
411
397
  tier_name: message.roleSubscriptionData.tierName,
412
398
  total_months_subscribed: message.roleSubscriptionData.totalMonthsSubscribed,
413
399
  is_renewal: message.roleSubscriptionData.isRenewal,
@@ -6,7 +6,7 @@ class Polls {
6
6
  return {
7
7
  question: poll.question,
8
8
  answers: poll.answers.map((answer) => ({
9
- answerID: answer.answer_id,
9
+ answerId: answer.answer_id,
10
10
  pollMedia: answer.poll_media,
11
11
  })),
12
12
  expiry: poll.expiry,
@@ -28,7 +28,7 @@ class Polls {
28
28
  return {
29
29
  question: poll.question,
30
30
  answers: poll.answers.map((answer) => ({
31
- answer_id: answer.answerID,
31
+ answer_id: answer.answerId,
32
32
  poll_media: answer.pollMedia,
33
33
  })),
34
34
  expiry: poll.expiry,
@@ -25,12 +25,12 @@ class Presences {
25
25
  ? presence.user.avatar_decoration_data !== null
26
26
  ? {
27
27
  asset: presence.user.avatar_decoration_data.asset,
28
- skuID: presence.user.avatar_decoration_data.sku_id,
28
+ skuId: presence.user.avatar_decoration_data.sku_id,
29
29
  }
30
30
  : null
31
31
  : undefined,
32
32
  },
33
- guildID: presence.guild_id,
33
+ guildId: presence.guild_id,
34
34
  status: presence.status,
35
35
  activities: presence.activities.map((activity) => ({
36
36
  name: activity.name,
@@ -38,7 +38,7 @@ class Presences {
38
38
  url: activity.url,
39
39
  createdAt: activity.created_at,
40
40
  timestamps: activity.timestamps,
41
- applicationID: activity.application_id,
41
+ applicationId: activity.application_id,
42
42
  details: activity.details,
43
43
  state: activity.state,
44
44
  emoji: activity.emoji,
@@ -80,12 +80,12 @@ class Presences {
80
80
  ? presence.user.avatarDecorationData !== null
81
81
  ? {
82
82
  asset: presence.user.avatarDecorationData.asset,
83
- sku_id: presence.user.avatarDecorationData.skuID,
83
+ sku_id: presence.user.avatarDecorationData.skuId,
84
84
  }
85
85
  : null
86
86
  : undefined,
87
87
  },
88
- guild_id: presence.guildID,
88
+ guild_id: presence.guildId,
89
89
  status: presence.status,
90
90
  activities: presence.activities.map((activity) => ({
91
91
  name: activity.name,
@@ -93,7 +93,7 @@ class Presences {
93
93
  url: activity.url,
94
94
  created_at: activity.createdAt,
95
95
  timestamps: activity.timestamps,
96
- application_id: activity.applicationID,
96
+ application_id: activity.applicationId,
97
97
  details: activity.details,
98
98
  state: activity.state,
99
99
  emoji: activity.emoji,
@@ -10,7 +10,7 @@ class Roles {
10
10
  colors: {
11
11
  primaryColor: role.colors.primary_color,
12
12
  secondaryColor: role.colors.secondary_color,
13
- tertiaryColors: role.colors.tertiary_colors,
13
+ tertiaryColor: role.colors.tertiary_color,
14
14
  },
15
15
  hoist: role.hoist,
16
16
  icon: role.icon,
@@ -21,10 +21,10 @@ class Roles {
21
21
  mentionable: role.mentionable,
22
22
  tags: role.tags !== undefined
23
23
  ? {
24
- botID: role.tags.bot_id,
25
- integrationID: role.tags.integration_id,
24
+ botId: role.tags.bot_id,
25
+ integrationId: role.tags.integration_id,
26
26
  premiumSubscriber: role.tags.premium_subscriber,
27
- subscriptionListingID: role.tags.subscription_listing_id,
27
+ subscriptionListingId: role.tags.subscription_listing_id,
28
28
  availableForPurchase: role.tags.available_for_purchase,
29
29
  guildConnections: role.tags.guild_connections,
30
30
  }
@@ -40,7 +40,7 @@ class Roles {
40
40
  colors: {
41
41
  primary_color: role.colors.primaryColor,
42
42
  secondary_color: role.colors.secondaryColor,
43
- tertiary_colors: role.colors.tertiaryColors,
43
+ tertiary_color: role.colors.tertiaryColor,
44
44
  },
45
45
  hoist: role.hoist,
46
46
  icon: role.icon,
@@ -51,10 +51,10 @@ class Roles {
51
51
  mentionable: role.mentionable,
52
52
  tags: role.tags !== undefined
53
53
  ? {
54
- bot_id: role.tags.botID,
55
- integration_id: role.tags.integrationID,
54
+ bot_id: role.tags.botId,
55
+ integration_id: role.tags.integrationId,
56
56
  premium_subscriber: role.tags.premiumSubscriber,
57
- subscription_listing_id: role.tags.subscriptionListingID,
57
+ subscription_listing_id: role.tags.subscriptionListingId,
58
58
  available_for_purchase: role.tags.availableForPurchase,
59
59
  guild_connections: role.tags.guildConnections,
60
60
  }
@@ -6,7 +6,7 @@ class SKUs {
6
6
  return {
7
7
  id: sku.id,
8
8
  type: sku.type,
9
- applicationID: sku.application_id,
9
+ applicationId: sku.application_id,
10
10
  name: sku.name,
11
11
  slug: sku.slug,
12
12
  flags: sku.flags,
@@ -16,7 +16,7 @@ class SKUs {
16
16
  return {
17
17
  id: sku.id,
18
18
  type: sku.type,
19
- application_id: sku.applicationID,
19
+ application_id: sku.applicationId,
20
20
  name: sku.name,
21
21
  slug: sku.slug,
22
22
  flags: sku.flags,
@@ -6,11 +6,11 @@ class Soundboards {
6
6
  static soundboardSoundFromRaw(sound) {
7
7
  return {
8
8
  name: sound.name,
9
- soundID: sound.sound_id,
9
+ soundId: sound.sound_id,
10
10
  volume: sound.volume,
11
- emojiID: sound.emoji_id,
11
+ emojiId: sound.emoji_id,
12
12
  emojiName: sound.emoji_name,
13
- guildID: sound.guild_id,
13
+ guildId: sound.guild_id,
14
14
  available: sound.available,
15
15
  user: sound.user !== undefined ? Users_1.Users.userFromRaw(sound.user) : undefined,
16
16
  };
@@ -18,11 +18,11 @@ class Soundboards {
18
18
  static soundboardSoundToRaw(sound) {
19
19
  return {
20
20
  name: sound.name,
21
- sound_id: sound.soundID,
21
+ sound_id: sound.soundId,
22
22
  volume: sound.volume,
23
- emoji_id: sound.emojiID,
23
+ emoji_id: sound.emojiId,
24
24
  emoji_name: sound.emojiName,
25
- guild_id: sound.guildID,
25
+ guild_id: sound.guildId,
26
26
  available: sound.available,
27
27
  user: sound.user !== undefined ? Users_1.Users.userToRaw(sound.user) : undefined,
28
28
  };
@@ -5,23 +5,23 @@ class StageInstances {
5
5
  static stageInstanceFromRaw(stageInstance) {
6
6
  return {
7
7
  id: stageInstance.id,
8
- guildID: stageInstance.guild_id,
9
- channelID: stageInstance.channel_id,
8
+ guildId: stageInstance.guild_id,
9
+ channelId: stageInstance.channel_id,
10
10
  topic: stageInstance.topic,
11
11
  privacyLevel: stageInstance.privacy_level,
12
12
  discoverableDisabled: stageInstance.discoverable_disabled,
13
- guildScheduledEventID: stageInstance.guild_scheduled_event_id,
13
+ guildScheduledEventId: stageInstance.guild_scheduled_event_id,
14
14
  };
15
15
  }
16
16
  static stageInstanceToRaw(stageInstance) {
17
17
  return {
18
18
  id: stageInstance.id,
19
- guild_id: stageInstance.guildID,
20
- channel_id: stageInstance.channelID,
19
+ guild_id: stageInstance.guildId,
20
+ channel_id: stageInstance.channelId,
21
21
  topic: stageInstance.topic,
22
22
  privacy_level: stageInstance.privacyLevel,
23
23
  discoverable_disabled: stageInstance.discoverableDisabled,
24
- guild_scheduled_event_id: stageInstance.guildScheduledEventID,
24
+ guild_scheduled_event_id: stageInstance.guildScheduledEventId,
25
25
  };
26
26
  }
27
27
  }
@@ -6,14 +6,14 @@ class Stickers {
6
6
  static stickerFromRaw(sticker) {
7
7
  return {
8
8
  id: sticker.id,
9
- packID: sticker.pack_id,
9
+ packId: sticker.pack_id,
10
10
  name: sticker.name,
11
11
  description: sticker.description,
12
12
  tags: sticker.tags,
13
13
  type: sticker.type,
14
14
  formatType: sticker.format_type,
15
15
  available: sticker.available,
16
- guildID: sticker.id,
16
+ guildId: sticker.id,
17
17
  user: sticker.user !== undefined
18
18
  ? Users_1.Users.userFromRaw(sticker.user)
19
19
  : undefined,
@@ -23,7 +23,7 @@ class Stickers {
23
23
  static stickerToRaw(sticker) {
24
24
  return {
25
25
  id: sticker.id,
26
- pack_id: sticker.packID,
26
+ pack_id: sticker.packId,
27
27
  name: sticker.name,
28
28
  description: sticker.description,
29
29
  tags: sticker.tags,
@@ -5,10 +5,10 @@ class Subscriptions {
5
5
  static subscriptionFromRaw(subscription) {
6
6
  return {
7
7
  id: subscription.id,
8
- userID: subscription.user_id,
9
- skuIDs: subscription.sku_ids,
10
- entitlementIDs: subscription.entitlement_ids,
11
- renewalSKUIDs: subscription.renewal_sku_ids,
8
+ userId: subscription.user_id,
9
+ skuIds: subscription.sku_ids,
10
+ entitlementIds: subscription.entitlement_ids,
11
+ renewalSKUIds: subscription.renewal_sku_ids,
12
12
  currentPeriodStart: subscription.current_period_start,
13
13
  currentPeriodEnd: subscription.current_period_end,
14
14
  status: subscription.status,
@@ -19,10 +19,10 @@ class Subscriptions {
19
19
  static subscriptionToRaw(subscription) {
20
20
  return {
21
21
  id: subscription.id,
22
- user_id: subscription.userID,
23
- sku_ids: subscription.skuIDs,
24
- entitlement_ids: subscription.entitlementIDs,
25
- renewal_sku_ids: subscription.renewalSKUIDs,
22
+ user_id: subscription.userId,
23
+ sku_ids: subscription.skuIds,
24
+ entitlement_ids: subscription.entitlementIds,
25
+ renewal_sku_ids: subscription.renewalSKUIds,
26
26
  current_period_start: subscription.currentPeriodStart,
27
27
  current_period_end: subscription.currentPeriodEnd,
28
28
  status: subscription.status,
@@ -9,12 +9,12 @@ class Teams {
9
9
  id: team.id,
10
10
  members: team.members.map((teamMember) => ({
11
11
  membershipState: teamMember.membership_state,
12
- teamID: teamMember.team_id,
12
+ teamId: teamMember.team_id,
13
13
  user: Users_1.Users.userFromRaw(teamMember.user),
14
14
  role: teamMember.role,
15
15
  })),
16
16
  name: team.name,
17
- ownerUserID: team.owner_user_id,
17
+ ownerUserId: team.owner_user_id,
18
18
  };
19
19
  }
20
20
  static teamToRaw(team) {
@@ -23,12 +23,12 @@ class Teams {
23
23
  id: team.id,
24
24
  members: team.members.map((teamMember) => ({
25
25
  membership_state: teamMember.membershipState,
26
- team_id: teamMember.teamID,
26
+ team_id: teamMember.teamId,
27
27
  user: Users_1.Users.userToRaw(teamMember.user),
28
28
  role: teamMember.role,
29
29
  })),
30
30
  name: team.name,
31
- owner_user_id: team.ownerUserID,
31
+ owner_user_id: team.ownerUserId,
32
32
  };
33
33
  }
34
34
  }
@@ -4,7 +4,7 @@ exports.Users = void 0;
4
4
  class Users {
5
5
  static nameplateFromRaw(nameplate) {
6
6
  return {
7
- skuID: nameplate.sku_id,
7
+ skuId: nameplate.sku_id,
8
8
  asset: nameplate.asset,
9
9
  label: nameplate.label,
10
10
  palette: nameplate.palette,
@@ -12,7 +12,7 @@ class Users {
12
12
  }
13
13
  static nameplateToRaw(nameplate) {
14
14
  return {
15
- sku_id: nameplate.skuID,
15
+ sku_id: nameplate.skuId,
16
16
  asset: nameplate.asset,
17
17
  label: nameplate.label,
18
18
  palette: nameplate.palette,
@@ -40,7 +40,7 @@ class Users {
40
40
  ? user.avatar_decoration_data !== null
41
41
  ? {
42
42
  asset: user.avatar_decoration_data.asset,
43
- skuID: user.avatar_decoration_data.sku_id,
43
+ skuId: user.avatar_decoration_data.sku_id,
44
44
  }
45
45
  : null
46
46
  : undefined,
@@ -56,7 +56,7 @@ class Users {
56
56
  primaryGuild: user.primary_guild !== undefined
57
57
  ? user.primary_guild !== null
58
58
  ? {
59
- identityGuildID: user.primary_guild.identity_guild_id,
59
+ identityGuildId: user.primary_guild.identity_guild_id,
60
60
  identityEnabled: user.primary_guild.identity_enabled,
61
61
  tag: user.primary_guild.tag,
62
62
  badge: user.primary_guild.badge,
@@ -87,7 +87,7 @@ class Users {
87
87
  ? user.avatarDecorationData !== null
88
88
  ? {
89
89
  asset: user.avatarDecorationData.asset,
90
- sku_id: user.avatarDecorationData.skuID,
90
+ sku_id: user.avatarDecorationData.skuId,
91
91
  }
92
92
  : null
93
93
  : undefined,
@@ -103,7 +103,7 @@ class Users {
103
103
  primary_guild: user.primaryGuild !== undefined
104
104
  ? user.primaryGuild !== null
105
105
  ? {
106
- identity_guild_id: user.primaryGuild.identityGuildID,
106
+ identity_guild_id: user.primaryGuild.identityGuildId,
107
107
  identity_enabled: user.primaryGuild.identityEnabled,
108
108
  tag: user.primaryGuild.tag,
109
109
  badge: user.primaryGuild.badge,
@@ -5,13 +5,13 @@ const Guilds_1 = require("./Guilds");
5
5
  class Voice {
6
6
  static voiceStateFromRaw(voiceState) {
7
7
  return {
8
- guildID: voiceState.guild_id,
9
- channelID: voiceState.channel_id,
10
- userID: voiceState.user_id,
8
+ guildId: voiceState.guild_id,
9
+ channelId: voiceState.channel_id,
10
+ userId: voiceState.user_id,
11
11
  member: voiceState.member !== undefined
12
12
  ? Guilds_1.Guilds.guildMemberFromRaw(voiceState.member)
13
13
  : undefined,
14
- sessionID: voiceState.session_id,
14
+ sessionId: voiceState.session_id,
15
15
  deaf: voiceState.deaf,
16
16
  mute: voiceState.mute,
17
17
  selfDeaf: voiceState.self_deaf,
@@ -24,13 +24,13 @@ class Voice {
24
24
  }
25
25
  static voiceStateToRaw(voiceState) {
26
26
  return {
27
- guild_id: voiceState.guildID,
28
- channel_id: voiceState.channelID,
29
- user_id: voiceState.userID,
27
+ guild_id: voiceState.guildId,
28
+ channel_id: voiceState.channelId,
29
+ user_id: voiceState.userId,
30
30
  member: voiceState.member !== undefined
31
31
  ? Guilds_1.Guilds.guildMemberToRaw(voiceState.member)
32
32
  : undefined,
33
- session_id: voiceState.sessionID,
33
+ session_id: voiceState.sessionId,
34
34
  deaf: voiceState.deaf,
35
35
  mute: voiceState.mute,
36
36
  self_deaf: voiceState.selfDeaf,
@@ -9,15 +9,15 @@ class Webhooks {
9
9
  return {
10
10
  id: webhook.id,
11
11
  type: webhook.type,
12
- guildID: webhook.guild_id,
13
- channelID: webhook.channel_id,
12
+ guildId: webhook.guild_id,
13
+ channelId: webhook.channel_id,
14
14
  user: webhook.user !== undefined
15
15
  ? Users_1.Users.userFromRaw(webhook.user)
16
16
  : undefined,
17
17
  name: webhook.name,
18
18
  avatar: webhook.avatar,
19
19
  token: webhook.token,
20
- applicationID: webhook.application_id,
20
+ applicationId: webhook.application_id,
21
21
  sourceGuild: webhook.source_guild !== undefined
22
22
  ? Guilds_1.Guilds.guildFromRaw(webhook.source_guild)
23
23
  : undefined,
@@ -31,13 +31,13 @@ class Webhooks {
31
31
  return {
32
32
  id: webhook.id,
33
33
  type: webhook.type,
34
- guild_id: webhook.guildID,
35
- channel_id: webhook.channelID,
34
+ guild_id: webhook.guildId,
35
+ channel_id: webhook.channelId,
36
36
  user: webhook.user !== undefined ? Users_1.Users.userToRaw(webhook.user) : undefined,
37
37
  name: webhook.name,
38
38
  avatar: webhook.avatar,
39
39
  token: webhook.token,
40
- application_id: webhook.applicationID,
40
+ application_id: webhook.applicationId,
41
41
  source_guild: webhook.sourceGuild !== undefined
42
42
  ? Guilds_1.Guilds.guildToRaw(webhook.sourceGuild)
43
43
  : undefined,
@@ -4,7 +4,7 @@ export * from "./Applications";
4
4
  export * from "./AuditLogs";
5
5
  export * from "./AutoModeration";
6
6
  export * from "./Channels";
7
- export * from "./Components.js";
7
+ export * from "./Components";
8
8
  export * from "./Emojis";
9
9
  export * from "./Entitlements";
10
10
  export * from "./Guilds";
@@ -12,6 +12,7 @@ export * from "./GuildScheduledEvents";
12
12
  export * from "./GuildTemplates";
13
13
  export * from "./Interactions";
14
14
  export * from "./Invites";
15
+ export * from "./Lobbies";
15
16
  export * from "./Messages";
16
17
  export * from "./Polls";
17
18
  export * from "./Presences";
@@ -20,7 +20,7 @@ __exportStar(require("./Applications"), exports);
20
20
  __exportStar(require("./AuditLogs"), exports);
21
21
  __exportStar(require("./AutoModeration"), exports);
22
22
  __exportStar(require("./Channels"), exports);
23
- __exportStar(require("./Components.js"), exports);
23
+ __exportStar(require("./Components"), exports);
24
24
  __exportStar(require("./Emojis"), exports);
25
25
  __exportStar(require("./Entitlements"), exports);
26
26
  __exportStar(require("./Guilds"), exports);
@@ -28,6 +28,7 @@ __exportStar(require("./GuildScheduledEvents"), exports);
28
28
  __exportStar(require("./GuildTemplates"), exports);
29
29
  __exportStar(require("./Interactions"), exports);
30
30
  __exportStar(require("./Invites"), exports);
31
+ __exportStar(require("./Lobbies"), exports);
31
32
  __exportStar(require("./Messages"), exports);
32
33
  __exportStar(require("./Polls"), exports);
33
34
  __exportStar(require("./Presences"), exports);