disgroove 2.2.7 → 3.0.0-dev.2cf2b90

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 (92) hide show
  1. package/LICENSE +9 -9
  2. package/README.md +48 -48
  3. package/dist/lib/Client.d.ts +295 -300
  4. package/dist/lib/Client.js +480 -473
  5. package/dist/lib/constants.d.ts +7 -4
  6. package/dist/lib/constants.js +6 -3
  7. package/dist/lib/gateway/Dispatcher.d.ts +104 -0
  8. package/dist/lib/gateway/Dispatcher.js +471 -0
  9. package/dist/lib/gateway/Shard.d.ts +12 -21
  10. package/dist/lib/gateway/Shard.js +120 -584
  11. package/dist/lib/gateway/Transmitter.d.ts +22 -0
  12. package/dist/lib/gateway/Transmitter.js +93 -0
  13. package/dist/lib/gateway/WebSocketManager.d.ts +22 -0
  14. package/dist/lib/gateway/WebSocketManager.js +93 -0
  15. package/dist/lib/index.d.ts +4 -0
  16. package/dist/lib/index.js +4 -0
  17. package/dist/lib/rest/Endpoints.d.ts +94 -94
  18. package/dist/lib/rest/Endpoints.js +104 -104
  19. package/dist/lib/rest/RequestManager.js +17 -7
  20. package/dist/lib/rest/index.js +17 -7
  21. package/dist/lib/transformers/ApplicationCommands.js +4 -4
  22. package/dist/lib/transformers/Applications.d.ts +2 -0
  23. package/dist/lib/transformers/Applications.js +110 -4
  24. package/dist/lib/transformers/AuditLogs.js +10 -10
  25. package/dist/lib/transformers/AutoModeration.js +6 -6
  26. package/dist/lib/transformers/Channels.js +16 -16
  27. package/dist/lib/transformers/Components.d.ts +3 -1
  28. package/dist/lib/transformers/Components.js +42 -16
  29. package/dist/lib/transformers/Entitlements.d.ts +2 -2
  30. package/dist/lib/transformers/Entitlements.js +16 -16
  31. package/dist/lib/transformers/GuildScheduledEvents.js +8 -8
  32. package/dist/lib/transformers/GuildTemplates.js +4 -4
  33. package/dist/lib/transformers/Guilds.js +28 -28
  34. package/dist/lib/transformers/Interactions.js +74 -44
  35. package/dist/lib/transformers/Lobbies.js +2 -2
  36. package/dist/lib/transformers/Messages.js +18 -18
  37. package/dist/lib/transformers/Polls.js +2 -2
  38. package/dist/lib/transformers/Presences.d.ts +3 -3
  39. package/dist/lib/transformers/Presences.js +6 -6
  40. package/dist/lib/transformers/Roles.js +6 -6
  41. package/dist/lib/transformers/SKUs.js +2 -2
  42. package/dist/lib/transformers/Soundboards.js +6 -6
  43. package/dist/lib/transformers/StageInstances.js +6 -6
  44. package/dist/lib/transformers/Stickers.js +3 -3
  45. package/dist/lib/transformers/Subscriptions.js +8 -8
  46. package/dist/lib/transformers/Teams.js +4 -4
  47. package/dist/lib/transformers/Users.js +6 -6
  48. package/dist/lib/transformers/Voice.js +8 -8
  49. package/dist/lib/transformers/Webhooks.js +6 -6
  50. package/dist/lib/types/application-command.d.ts +9 -4
  51. package/dist/lib/types/application-role-connection-metadata.d.ts +1 -0
  52. package/dist/lib/types/application.d.ts +12 -7
  53. package/dist/lib/types/audit-log.d.ts +9 -5
  54. package/dist/lib/types/auto-moderation.d.ts +7 -3
  55. package/dist/lib/types/channel.d.ts +17 -23
  56. package/dist/lib/types/common.d.ts +2 -0
  57. package/dist/lib/types/components.d.ts +79 -19
  58. package/dist/lib/types/emoji.d.ts +1 -0
  59. package/dist/lib/types/entitlements.d.ts +5 -4
  60. package/dist/lib/types/gateway-events.d.ts +387 -210
  61. package/dist/lib/types/guild-scheduled-event.d.ts +10 -5
  62. package/dist/lib/types/guild-template.d.ts +3 -2
  63. package/dist/lib/types/guild.d.ts +33 -17
  64. package/dist/lib/types/interaction.d.ts +26 -13
  65. package/dist/lib/types/invite.d.ts +3 -0
  66. package/dist/lib/types/lobby.d.ts +3 -1
  67. package/dist/lib/types/message.d.ts +29 -15
  68. package/dist/lib/types/poll.d.ts +7 -1
  69. package/dist/lib/types/role.d.ts +6 -3
  70. package/dist/lib/types/sku.d.ts +2 -1
  71. package/dist/lib/types/soundboard.d.ts +4 -3
  72. package/dist/lib/types/stage-instance.d.ts +4 -3
  73. package/dist/lib/types/sticker.d.ts +8 -5
  74. package/dist/lib/types/subscription.d.ts +6 -5
  75. package/dist/lib/types/team.d.ts +4 -2
  76. package/dist/lib/types/user.d.ts +10 -3
  77. package/dist/lib/types/voice.d.ts +6 -4
  78. package/dist/lib/types/webhook.d.ts +4 -3
  79. package/dist/lib/utils/CDN.d.ts +22 -22
  80. package/dist/lib/utils/CDN.js +22 -22
  81. package/dist/lib/utils/errors.d.ts +3 -1
  82. package/dist/lib/utils/errors.js +4 -0
  83. package/dist/lib/utils/formatters.d.ts +6 -6
  84. package/dist/lib/utils/formatters.js +27 -28
  85. package/dist/lib/utils/index.d.ts +1 -0
  86. package/dist/lib/utils/index.js +18 -7
  87. package/dist/lib/utils/permissions.d.ts +2 -0
  88. package/dist/lib/utils/permissions.js +7 -0
  89. package/dist/package.json +1 -1
  90. package/package.json +2 -2
  91. package/dist/lib/types/message-components.d.ts +0 -450
  92. package/dist/lib/types/message-components.js +0 -2
@@ -9,8 +9,8 @@ class Guilds {
9
9
  static guildApplicationCommandPermissionsFromRaw(guildApplicationCommandPermissions) {
10
10
  return {
11
11
  id: guildApplicationCommandPermissions.id,
12
- applicationID: guildApplicationCommandPermissions.application_id,
13
- guildID: guildApplicationCommandPermissions.guild_id,
12
+ applicationId: guildApplicationCommandPermissions.application_id,
13
+ guildId: guildApplicationCommandPermissions.guild_id,
14
14
  permissions: guildApplicationCommandPermissions.permissions.map((permission) => ({
15
15
  id: permission.id,
16
16
  type: permission.type,
@@ -21,8 +21,8 @@ class Guilds {
21
21
  static guildApplicationCommandPermissionsToRaw(guildApplicationCommandPermissions) {
22
22
  return {
23
23
  id: guildApplicationCommandPermissions.id,
24
- application_id: guildApplicationCommandPermissions.applicationID,
25
- guild_id: guildApplicationCommandPermissions.guildID,
24
+ application_id: guildApplicationCommandPermissions.applicationId,
25
+ guild_id: guildApplicationCommandPermissions.guildId,
26
26
  permissions: guildApplicationCommandPermissions.permissions.map((permission) => ({
27
27
  id: permission.id,
28
28
  type: permission.type,
@@ -39,13 +39,13 @@ class Guilds {
39
39
  splash: guild.splash,
40
40
  discoverySplash: guild.discovery_splash,
41
41
  owner: guild.owner,
42
- ownerID: guild.owner_id,
42
+ ownerId: guild.owner_id,
43
43
  permissions: guild.permissions,
44
44
  region: guild.region,
45
- afkChannelID: guild.afk_channel_id,
45
+ afkChannelId: guild.afk_channel_id,
46
46
  afkTimeout: guild.afk_timeout,
47
47
  widgetEnabled: guild.widget_enabled,
48
- widgetChannelID: guild.widget_channel_id,
48
+ widgetChannelId: guild.widget_channel_id,
49
49
  verificationLevel: guild.verification_level,
50
50
  defaultMessageNotifications: guild.default_message_notifications,
51
51
  explicitContentFilter: guild.explicit_content_filter,
@@ -53,10 +53,10 @@ class Guilds {
53
53
  emojis: guild.emojis.map((emoji) => Emojis_1.Emojis.emojiFromRaw(emoji)),
54
54
  features: guild.features,
55
55
  mfaLevel: guild.mfa_level,
56
- applicationID: guild.application_id,
57
- systemChannelID: guild.system_channel_id,
56
+ applicationId: guild.application_id,
57
+ systemChannelId: guild.system_channel_id,
58
58
  systemChannelFlags: guild.system_channel_flags,
59
- rulesChannelID: guild.rules_channel_id,
59
+ rulesChannelId: guild.rules_channel_id,
60
60
  maxPresences: guild.max_presences,
61
61
  maxMembers: guild.max_members,
62
62
  vanityURLCode: guild.vanity_url_code,
@@ -65,7 +65,7 @@ class Guilds {
65
65
  premiumTier: guild.premium_tier,
66
66
  premiumSubscriptionCount: guild.premium_subscription_count,
67
67
  preferredLocale: guild.preferred_locale,
68
- publicUpdatesChannelID: guild.public_updates_channel_id,
68
+ publicUpdatesChannelId: guild.public_updates_channel_id,
69
69
  maxVideoChannelUsers: guild.max_video_channel_users,
70
70
  maxStageVideoChannelUsers: guild.max_stage_video_channel_users,
71
71
  approximateMemberCount: guild.approximate_member_count,
@@ -74,9 +74,9 @@ class Guilds {
74
74
  ? {
75
75
  description: guild.welcome_screen.description,
76
76
  welcomeChannels: guild.welcome_screen.welcome_channels.map((welcomeScreenChannel) => ({
77
- channelID: welcomeScreenChannel.channel_id,
77
+ channelId: welcomeScreenChannel.channel_id,
78
78
  description: welcomeScreenChannel.description,
79
- emojiID: welcomeScreenChannel.emoji_id,
79
+ emojiId: welcomeScreenChannel.emoji_id,
80
80
  emojiName: welcomeScreenChannel.emoji_name,
81
81
  })),
82
82
  }
@@ -84,7 +84,7 @@ class Guilds {
84
84
  nsfwLevel: guild.nsfw_level,
85
85
  stickers: guild.stickers?.map((sticker) => Stickers_1.Stickers.stickerFromRaw(sticker)),
86
86
  premiumProgressBarEnabled: guild.premium_progress_bar_enabled,
87
- safetyAlertsChannelID: guild.safety_alerts_channel_id,
87
+ safetyAlertsChannelId: guild.safety_alerts_channel_id,
88
88
  incidentsData: guild.incidents_data !== null
89
89
  ? {
90
90
  invitesDisabledUntil: guild.incidents_data.invites_disabled_until,
@@ -115,7 +115,7 @@ class Guilds {
115
115
  ? guildMember.avatar_decoration_data !== null
116
116
  ? {
117
117
  asset: guildMember.avatar_decoration_data.asset,
118
- skuID: guildMember.avatar_decoration_data.sku_id,
118
+ skuId: guildMember.avatar_decoration_data.sku_id,
119
119
  }
120
120
  : null
121
121
  : undefined,
@@ -141,7 +141,7 @@ class Guilds {
141
141
  ? guildMember.avatarDecorationData !== null
142
142
  ? {
143
143
  asset: guildMember.avatarDecorationData.asset,
144
- sku_id: guildMember.avatarDecorationData.skuID,
144
+ sku_id: guildMember.avatarDecorationData.skuId,
145
145
  }
146
146
  : null
147
147
  : undefined,
@@ -156,13 +156,13 @@ class Guilds {
156
156
  splash: guild.splash,
157
157
  discovery_splash: guild.discoverySplash,
158
158
  owner: guild.owner,
159
- owner_id: guild.ownerID,
159
+ owner_id: guild.ownerId,
160
160
  permissions: guild.permissions,
161
161
  region: guild.region,
162
- afk_channel_id: guild.afkChannelID,
162
+ afk_channel_id: guild.afkChannelId,
163
163
  afk_timeout: guild.afkTimeout,
164
164
  widget_enabled: guild.widgetEnabled,
165
- widget_channel_id: guild.widgetChannelID,
165
+ widget_channel_id: guild.widgetChannelId,
166
166
  verification_level: guild.verificationLevel,
167
167
  default_message_notifications: guild.defaultMessageNotifications,
168
168
  explicit_content_filter: guild.explicitContentFilter,
@@ -170,10 +170,10 @@ class Guilds {
170
170
  emojis: guild.emojis.map((emoji) => Emojis_1.Emojis.emojiToRaw(emoji)),
171
171
  features: guild.features,
172
172
  mfa_level: guild.mfaLevel,
173
- application_id: guild.applicationID,
174
- system_channel_id: guild.systemChannelID,
173
+ application_id: guild.applicationId,
174
+ system_channel_id: guild.systemChannelId,
175
175
  system_channel_flags: guild.systemChannelFlags,
176
- rules_channel_id: guild.rulesChannelID,
176
+ rules_channel_id: guild.rulesChannelId,
177
177
  max_presences: guild.maxPresences,
178
178
  max_members: guild.maxMembers,
179
179
  vanity_url_code: guild.vanityURLCode,
@@ -182,7 +182,7 @@ class Guilds {
182
182
  premium_tier: guild.premiumTier,
183
183
  premium_subscription_count: guild.premiumSubscriptionCount,
184
184
  preferred_locale: guild.preferredLocale,
185
- public_updates_channel_id: guild.publicUpdatesChannelID,
185
+ public_updates_channel_id: guild.publicUpdatesChannelId,
186
186
  max_video_channel_users: guild.maxVideoChannelUsers,
187
187
  max_stage_video_channel_users: guild.maxStageVideoChannelUsers,
188
188
  approximate_member_count: guild.approximateMemberCount,
@@ -191,9 +191,9 @@ class Guilds {
191
191
  ? {
192
192
  description: guild.welcomeScreen.description,
193
193
  welcome_channels: guild.welcomeScreen.welcomeChannels.map((welcomeScreenChannel) => ({
194
- channel_id: welcomeScreenChannel.channelID,
194
+ channel_id: welcomeScreenChannel.channelId,
195
195
  description: welcomeScreenChannel.description,
196
- emoji_id: welcomeScreenChannel.emojiID,
196
+ emoji_id: welcomeScreenChannel.emojiId,
197
197
  emoji_name: welcomeScreenChannel.emojiName,
198
198
  })),
199
199
  }
@@ -201,7 +201,7 @@ class Guilds {
201
201
  nsfw_level: guild.nsfwLevel,
202
202
  stickers: guild.stickers?.map((sticker) => Stickers_1.Stickers.stickerToRaw(sticker)),
203
203
  premium_progress_bar_enabled: guild.premiumProgressBarEnabled,
204
- safety_alerts_channel_id: guild.safetyAlertsChannelID,
204
+ safety_alerts_channel_id: guild.safetyAlertsChannelId,
205
205
  incidents_data: guild.incidentsData !== null
206
206
  ? {
207
207
  invites_disabled_until: guild.incidentsData.invitesDisabledUntil,
@@ -219,7 +219,7 @@ class Guilds {
219
219
  type: integration.type,
220
220
  enabled: integration.enabled,
221
221
  syncing: integration.syncing,
222
- roleID: integration.role_id,
222
+ roleId: integration.role_id,
223
223
  enableEmoticons: integration.enable_emoticons,
224
224
  expireBehavior: integration.expire_behavior,
225
225
  expireGracePeriod: integration.expire_grace_period,
@@ -251,7 +251,7 @@ class Guilds {
251
251
  type: integration.type,
252
252
  enabled: integration.enabled,
253
253
  syncing: integration.syncing,
254
- role_id: integration.roleID,
254
+ role_id: integration.roleId,
255
255
  enable_emoticons: integration.enableEmoticons,
256
256
  expire_behavior: integration.expireBehavior,
257
257
  expire_grace_period: integration.expireGracePeriod,
@@ -14,8 +14,8 @@ class Interactions {
14
14
  interaction: {
15
15
  id: interactionCallbackResponse.interaction.id,
16
16
  type: interactionCallbackResponse.interaction.type,
17
- activityInstanceID: interactionCallbackResponse.interaction.activity_instance_id,
18
- responseMessageID: interactionCallbackResponse.interaction.response_message_id,
17
+ activityInstanceId: interactionCallbackResponse.interaction.activity_instance_id,
18
+ responseMessageId: interactionCallbackResponse.interaction.response_message_id,
19
19
  responseMessageLoading: interactionCallbackResponse.interaction.response_message_loading,
20
20
  responseMessageEphemeral: interactionCallbackResponse.interaction.response_message_ephemeral,
21
21
  },
@@ -35,8 +35,8 @@ class Interactions {
35
35
  interaction: {
36
36
  id: interactionCallbackResponse.interaction.id,
37
37
  type: interactionCallbackResponse.interaction.type,
38
- activity_instance_id: interactionCallbackResponse.interaction.activityInstanceID,
39
- response_message_id: interactionCallbackResponse.interaction.responseMessageID,
38
+ activity_instance_id: interactionCallbackResponse.interaction.activityInstanceId,
39
+ response_message_id: interactionCallbackResponse.interaction.responseMessageId,
40
40
  response_message_loading: interactionCallbackResponse.interaction.responseMessageLoading,
41
41
  response_message_ephemeral: interactionCallbackResponse.interaction.responseMessageEphemeral,
42
42
  },
@@ -54,7 +54,7 @@ class Interactions {
54
54
  static interactionFromRaw(interaction) {
55
55
  return {
56
56
  id: interaction.id,
57
- applicationID: interaction.application_id,
57
+ applicationId: interaction.application_id,
58
58
  type: interaction.type,
59
59
  data: interaction.data !== undefined
60
60
  ? {
@@ -65,9 +65,9 @@ class Interactions {
65
65
  ? Interactions.resolvedDataFromRaw(interaction.data.resolved)
66
66
  : undefined,
67
67
  options: interaction.data?.options,
68
- guildID: interaction.data?.guild_id,
69
- targetID: interaction.data?.target_id,
70
- customID: interaction.data?.custom_id,
68
+ guildId: interaction.data?.guild_id,
69
+ targetId: interaction.data?.target_id,
70
+ customId: interaction.data?.custom_id,
71
71
  componentType: interaction.data?.component_type,
72
72
  values: interaction.data?.values,
73
73
  components: interaction.data?.components?.map((component) => {
@@ -81,7 +81,7 @@ class Interactions {
81
81
  return {
82
82
  type: c.type,
83
83
  id: c.id,
84
- customID: c.custom_id,
84
+ customId: c.custom_id,
85
85
  value: c.value,
86
86
  };
87
87
  case constants_1.ComponentTypes.StringSelect:
@@ -89,7 +89,7 @@ class Interactions {
89
89
  type: c.type,
90
90
  componentType: c.component_type,
91
91
  id: c.id,
92
- customID: c.custom_id,
92
+ customId: c.custom_id,
93
93
  values: c.values,
94
94
  };
95
95
  case constants_1.ComponentTypes.UserSelect:
@@ -97,7 +97,7 @@ class Interactions {
97
97
  type: c.type,
98
98
  componentType: c.component_type,
99
99
  id: c.id,
100
- customID: c.custom_id,
100
+ customId: c.custom_id,
101
101
  resolved: this.resolvedDataFromRaw(c.resolved),
102
102
  values: c.values,
103
103
  };
@@ -106,7 +106,7 @@ class Interactions {
106
106
  type: c.type,
107
107
  componentType: c.component_type,
108
108
  id: c.id,
109
- customID: c.custom_id,
109
+ customId: c.custom_id,
110
110
  resolved: this.resolvedDataFromRaw(c.resolved),
111
111
  values: c.values,
112
112
  };
@@ -115,7 +115,7 @@ class Interactions {
115
115
  type: c.type,
116
116
  componentType: c.component_type,
117
117
  id: c.id,
118
- customID: c.custom_id,
118
+ customId: c.custom_id,
119
119
  resolved: this.resolvedDataFromRaw(c.resolved),
120
120
  values: c.values,
121
121
  };
@@ -124,10 +124,17 @@ class Interactions {
124
124
  type: c.type,
125
125
  componentType: c.component_type,
126
126
  id: c.id,
127
- customID: c.custom_id,
127
+ customId: c.custom_id,
128
128
  resolved: this.resolvedDataFromRaw(c.resolved),
129
129
  values: c.values,
130
130
  };
131
+ case constants_1.ComponentTypes.FileUpload:
132
+ return {
133
+ type: c.type,
134
+ id: c.id,
135
+ customId: c.custom_id,
136
+ values: c.values,
137
+ };
131
138
  }
132
139
  }),
133
140
  };
@@ -143,7 +150,7 @@ class Interactions {
143
150
  c = {
144
151
  type: component.component.type,
145
152
  id: component.component.id,
146
- customID: component.component.custom_id,
153
+ customId: component.component.custom_id,
147
154
  value: component.component.value,
148
155
  };
149
156
  break;
@@ -152,7 +159,7 @@ class Interactions {
152
159
  type: component.component.type,
153
160
  componentType: component.component.component_type,
154
161
  id: component.component.id,
155
- customID: component.component.custom_id,
162
+ customId: component.component.custom_id,
156
163
  values: component.component.values,
157
164
  };
158
165
  break;
@@ -161,7 +168,7 @@ class Interactions {
161
168
  type: component.component.type,
162
169
  componentType: component.component.component_type,
163
170
  id: component.component.id,
164
- customID: component.component.custom_id,
171
+ customId: component.component.custom_id,
165
172
  resolved: this.resolvedDataFromRaw(component.component.resolved),
166
173
  values: component.component.values,
167
174
  };
@@ -171,7 +178,7 @@ class Interactions {
171
178
  type: component.component.type,
172
179
  componentType: component.component.component_type,
173
180
  id: component.component.id,
174
- customID: component.component.custom_id,
181
+ customId: component.component.custom_id,
175
182
  resolved: this.resolvedDataFromRaw(component.component.resolved),
176
183
  values: component.component.values,
177
184
  };
@@ -181,7 +188,7 @@ class Interactions {
181
188
  type: component.component.type,
182
189
  componentType: component.component.component_type,
183
190
  id: component.component.id,
184
- customID: component.component.custom_id,
191
+ customId: component.component.custom_id,
185
192
  resolved: this.resolvedDataFromRaw(component.component.resolved),
186
193
  values: component.component.values,
187
194
  };
@@ -191,11 +198,19 @@ class Interactions {
191
198
  type: component.component.type,
192
199
  componentType: component.component.component_type,
193
200
  id: component.component.id,
194
- customID: component.component.custom_id,
201
+ customId: component.component.custom_id,
195
202
  resolved: this.resolvedDataFromRaw(component.component.resolved),
196
203
  values: component.component.values,
197
204
  };
198
205
  break;
206
+ case constants_1.ComponentTypes.FileUpload:
207
+ c = {
208
+ type: component.component.type,
209
+ id: component.component.id,
210
+ customId: component.component.custom_id,
211
+ values: component.component.values,
212
+ };
213
+ break;
199
214
  }
200
215
  return {
201
216
  type: component.type,
@@ -214,11 +229,11 @@ class Interactions {
214
229
  features: interaction.guild.features,
215
230
  }
216
231
  : undefined,
217
- guildID: interaction.guild_id,
232
+ guildId: interaction.guild_id,
218
233
  channel: interaction.channel !== undefined
219
234
  ? Channels_1.Channels.channelFromRaw(interaction.channel)
220
235
  : undefined,
221
- channelID: interaction.channel_id,
236
+ channelId: interaction.channel_id,
222
237
  member: interaction.member !== undefined
223
238
  ? Guilds_1.Guilds.guildMemberFromRaw(interaction.member)
224
239
  : undefined,
@@ -251,8 +266,8 @@ class Interactions {
251
266
  "0": interactionMetadata.authorizing_integration_owners[0],
252
267
  "1": interactionMetadata.authorizing_integration_owners[1],
253
268
  },
254
- originalResponseMessageID: interactionMetadata.original_response_message_id,
255
- interactedMessageID: interactionMetadata.interacted_message_id,
269
+ originalResponseMessageId: interactionMetadata.original_response_message_id,
270
+ interactedMessageId: interactionMetadata.interacted_message_id,
256
271
  triggeringInteractionMetadata: interactionMetadata.triggering_interaction_metadata !== undefined
257
272
  ? Interactions.interactionMetadataFromRaw(interactionMetadata.triggering_interaction_metadata)
258
273
  : undefined,
@@ -267,8 +282,8 @@ class Interactions {
267
282
  "0": interactionMetadata.authorizingIntegrationOwners[0],
268
283
  "1": interactionMetadata.authorizingIntegrationOwners[1],
269
284
  },
270
- original_response_message_id: interactionMetadata.originalResponseMessageID,
271
- interacted_message_id: interactionMetadata.interactedMessageID,
285
+ original_response_message_id: interactionMetadata.originalResponseMessageId,
286
+ interacted_message_id: interactionMetadata.interactedMessageId,
272
287
  triggering_interaction_metadata: interactionMetadata.triggeringInteractionMetadata !== undefined
273
288
  ? Interactions.interactionMetadataToRaw(interactionMetadata.triggeringInteractionMetadata)
274
289
  : undefined,
@@ -277,7 +292,7 @@ class Interactions {
277
292
  static interactionToRaw(interaction) {
278
293
  return {
279
294
  id: interaction.id,
280
- application_id: interaction.applicationID,
295
+ application_id: interaction.applicationId,
281
296
  type: interaction.type,
282
297
  data: interaction.data !== undefined
283
298
  ? {
@@ -288,9 +303,9 @@ class Interactions {
288
303
  ? Interactions.resolvedDataToRaw(interaction.data.resolved)
289
304
  : undefined,
290
305
  options: interaction.data.options,
291
- guild_id: interaction.data.guildID,
292
- target_id: interaction.data.targetID,
293
- custom_id: interaction.data.customID,
306
+ guild_id: interaction.data.guildId,
307
+ target_id: interaction.data.targetId,
308
+ custom_id: interaction.data.customId,
294
309
  component_type: interaction.data.componentType,
295
310
  values: interaction.data.values,
296
311
  components: interaction.data?.components?.map((component) => {
@@ -304,7 +319,7 @@ class Interactions {
304
319
  return {
305
320
  type: c.type,
306
321
  id: c.id,
307
- custom_id: c.customID,
322
+ custom_id: c.customId,
308
323
  value: c.value,
309
324
  };
310
325
  case constants_1.ComponentTypes.StringSelect:
@@ -312,7 +327,7 @@ class Interactions {
312
327
  type: c.type,
313
328
  component_type: c.componentType,
314
329
  id: c.id,
315
- custom_id: c.customID,
330
+ custom_id: c.customId,
316
331
  values: c.values,
317
332
  };
318
333
  case constants_1.ComponentTypes.UserSelect:
@@ -320,7 +335,7 @@ class Interactions {
320
335
  type: c.type,
321
336
  component_type: c.componentType,
322
337
  id: c.id,
323
- custom_id: c.customID,
338
+ custom_id: c.customId,
324
339
  resolved: this.resolvedDataToRaw(c.resolved),
325
340
  values: c.values,
326
341
  };
@@ -329,7 +344,7 @@ class Interactions {
329
344
  type: c.type,
330
345
  component_type: c.componentType,
331
346
  id: c.id,
332
- custom_id: c.customID,
347
+ custom_id: c.customId,
333
348
  resolved: this.resolvedDataToRaw(c.resolved),
334
349
  values: c.values,
335
350
  };
@@ -338,7 +353,7 @@ class Interactions {
338
353
  type: c.type,
339
354
  component_type: c.componentType,
340
355
  id: c.id,
341
- custom_id: c.customID,
356
+ custom_id: c.customId,
342
357
  resolved: this.resolvedDataToRaw(c.resolved),
343
358
  values: c.values,
344
359
  };
@@ -347,10 +362,17 @@ class Interactions {
347
362
  type: c.type,
348
363
  component_type: c.componentType,
349
364
  id: c.id,
350
- custom_id: c.customID,
365
+ custom_id: c.customId,
351
366
  resolved: this.resolvedDataToRaw(c.resolved),
352
367
  values: c.values,
353
368
  };
369
+ case constants_1.ComponentTypes.FileUpload:
370
+ return {
371
+ type: c.type,
372
+ id: c.id,
373
+ custom_id: c.customId,
374
+ values: c.values,
375
+ };
354
376
  }
355
377
  }),
356
378
  };
@@ -366,7 +388,7 @@ class Interactions {
366
388
  c = {
367
389
  type: component.component.type,
368
390
  id: component.component.id,
369
- custom_id: component.component.customID,
391
+ custom_id: component.component.customId,
370
392
  value: component.component.value,
371
393
  };
372
394
  break;
@@ -375,7 +397,7 @@ class Interactions {
375
397
  type: component.component.type,
376
398
  component_type: component.component.componentType,
377
399
  id: component.component.id,
378
- custom_id: component.component.customID,
400
+ custom_id: component.component.customId,
379
401
  values: component.component.values,
380
402
  };
381
403
  break;
@@ -384,7 +406,7 @@ class Interactions {
384
406
  type: component.component.type,
385
407
  component_type: component.component.componentType,
386
408
  id: component.component.id,
387
- custom_id: component.component.customID,
409
+ custom_id: component.component.customId,
388
410
  resolved: this.resolvedDataToRaw(component.component.resolved),
389
411
  values: component.component.values,
390
412
  };
@@ -394,7 +416,7 @@ class Interactions {
394
416
  type: component.component.type,
395
417
  component_type: component.component.componentType,
396
418
  id: component.component.id,
397
- custom_id: component.component.customID,
419
+ custom_id: component.component.customId,
398
420
  resolved: this.resolvedDataToRaw(component.component.resolved),
399
421
  values: component.component.values,
400
422
  };
@@ -404,7 +426,7 @@ class Interactions {
404
426
  type: component.component.type,
405
427
  component_type: component.component.componentType,
406
428
  id: component.component.id,
407
- custom_id: component.component.customID,
429
+ custom_id: component.component.customId,
408
430
  resolved: this.resolvedDataToRaw(component.component.resolved),
409
431
  values: component.component.values,
410
432
  };
@@ -414,11 +436,19 @@ class Interactions {
414
436
  type: component.component.type,
415
437
  component_type: component.component.componentType,
416
438
  id: component.component.id,
417
- custom_id: component.component.customID,
439
+ custom_id: component.component.customId,
418
440
  resolved: this.resolvedDataToRaw(component.component.resolved),
419
441
  values: component.component.values,
420
442
  };
421
443
  break;
444
+ case constants_1.ComponentTypes.FileUpload:
445
+ c = {
446
+ type: component.component.type,
447
+ id: component.component.id,
448
+ custom_id: component.component.customId,
449
+ values: component.component.values,
450
+ };
451
+ break;
422
452
  }
423
453
  return {
424
454
  type: component.type,
@@ -437,11 +467,11 @@ class Interactions {
437
467
  features: interaction.guild.features,
438
468
  }
439
469
  : undefined,
440
- guild_id: interaction.guildID,
470
+ guild_id: interaction.guildId,
441
471
  channel: interaction.channel !== undefined
442
472
  ? Channels_1.Channels.channelToRaw(interaction.channel)
443
473
  : undefined,
444
- channel_id: interaction.channelID,
474
+ channel_id: interaction.channelId,
445
475
  member: interaction.member !== undefined
446
476
  ? Guilds_1.Guilds.guildMemberToRaw(interaction.member)
447
477
  : undefined,
@@ -5,7 +5,7 @@ class Lobbies {
5
5
  static lobbyFromRaw(lobby) {
6
6
  return {
7
7
  id: lobby.id,
8
- applicationID: lobby.application_id,
8
+ applicationId: lobby.application_id,
9
9
  metadata: lobby.metadata,
10
10
  members: lobby.members,
11
11
  linkedChannel: lobby.linked_channel,
@@ -28,7 +28,7 @@ class Lobbies {
28
28
  static lobbyToRaw(lobby) {
29
29
  return {
30
30
  id: lobby.id,
31
- application_id: lobby.applicationID,
31
+ application_id: lobby.applicationId,
32
32
  metadata: lobby.metadata,
33
33
  members: lobby.members,
34
34
  linked_channel: lobby.linkedChannel,