disgroove 2.2.7 → 3.0.0-dev.51640ff

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 (70) 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.d.ts +2 -0
  11. package/dist/lib/transformers/Applications.js +110 -4
  12. package/dist/lib/transformers/AuditLogs.js +10 -10
  13. package/dist/lib/transformers/AutoModeration.js +6 -6
  14. package/dist/lib/transformers/Channels.js +16 -16
  15. package/dist/lib/transformers/Components.js +16 -16
  16. package/dist/lib/transformers/Entitlements.d.ts +2 -2
  17. package/dist/lib/transformers/Entitlements.js +16 -16
  18. package/dist/lib/transformers/GuildScheduledEvents.js +8 -8
  19. package/dist/lib/transformers/GuildTemplates.js +4 -4
  20. package/dist/lib/transformers/Guilds.js +28 -28
  21. package/dist/lib/transformers/Interactions.js +44 -44
  22. package/dist/lib/transformers/Lobbies.js +2 -2
  23. package/dist/lib/transformers/Messages.js +18 -18
  24. package/dist/lib/transformers/Polls.js +2 -2
  25. package/dist/lib/transformers/Presences.js +6 -6
  26. package/dist/lib/transformers/Roles.js +6 -6
  27. package/dist/lib/transformers/SKUs.js +2 -2
  28. package/dist/lib/transformers/Soundboards.js +6 -6
  29. package/dist/lib/transformers/StageInstances.js +6 -6
  30. package/dist/lib/transformers/Stickers.js +3 -3
  31. package/dist/lib/transformers/Subscriptions.js +8 -8
  32. package/dist/lib/transformers/Teams.js +4 -4
  33. package/dist/lib/transformers/Users.js +6 -6
  34. package/dist/lib/transformers/Voice.js +8 -8
  35. package/dist/lib/transformers/Webhooks.js +6 -6
  36. package/dist/lib/types/application-command.d.ts +9 -4
  37. package/dist/lib/types/application-role-connection-metadata.d.ts +1 -0
  38. package/dist/lib/types/application.d.ts +12 -7
  39. package/dist/lib/types/audit-log.d.ts +9 -5
  40. package/dist/lib/types/auto-moderation.d.ts +7 -3
  41. package/dist/lib/types/channel.d.ts +17 -23
  42. package/dist/lib/types/common.d.ts +2 -0
  43. package/dist/lib/types/components.d.ts +43 -15
  44. package/dist/lib/types/emoji.d.ts +1 -0
  45. package/dist/lib/types/entitlements.d.ts +5 -4
  46. package/dist/lib/types/gateway-events.d.ts +181 -130
  47. package/dist/lib/types/guild-scheduled-event.d.ts +10 -5
  48. package/dist/lib/types/guild-template.d.ts +3 -2
  49. package/dist/lib/types/guild.d.ts +33 -17
  50. package/dist/lib/types/interaction.d.ts +23 -10
  51. package/dist/lib/types/invite.d.ts +3 -0
  52. package/dist/lib/types/lobby.d.ts +3 -1
  53. package/dist/lib/types/message.d.ts +29 -15
  54. package/dist/lib/types/poll.d.ts +7 -1
  55. package/dist/lib/types/role.d.ts +6 -3
  56. package/dist/lib/types/sku.d.ts +2 -1
  57. package/dist/lib/types/soundboard.d.ts +4 -3
  58. package/dist/lib/types/stage-instance.d.ts +4 -3
  59. package/dist/lib/types/sticker.d.ts +8 -5
  60. package/dist/lib/types/subscription.d.ts +6 -5
  61. package/dist/lib/types/team.d.ts +4 -2
  62. package/dist/lib/types/user.d.ts +10 -3
  63. package/dist/lib/types/voice.d.ts +6 -4
  64. package/dist/lib/types/webhook.d.ts +4 -3
  65. package/dist/lib/utils/CDN.d.ts +22 -22
  66. package/dist/lib/utils/CDN.js +22 -22
  67. package/dist/lib/utils/formatters.d.ts +6 -6
  68. package/dist/lib/utils/formatters.js +18 -18
  69. package/dist/package.json +1 -1
  70. package/package.json +1 -1
@@ -6,8 +6,8 @@ class ApplicationCommands {
6
6
  return {
7
7
  id: command.id,
8
8
  type: command.type,
9
- applicationID: command.application_id,
10
- guildID: command.guild_id,
9
+ applicationId: command.application_id,
10
+ guildId: command.guild_id,
11
11
  name: command.name,
12
12
  nameLocalizations: command.name_localizations,
13
13
  description: command.description,
@@ -27,8 +27,8 @@ class ApplicationCommands {
27
27
  return {
28
28
  id: command.id,
29
29
  type: command.type,
30
- application_id: command.applicationID,
31
- guild_id: command.guildID,
30
+ application_id: command.applicationId,
31
+ guild_id: command.guildId,
32
32
  name: command.name,
33
33
  name_localizations: command.nameLocalizations,
34
34
  description: command.description,
@@ -2,4 +2,6 @@ import type { RawApplication, Application } from "../types/application";
2
2
  export declare class Applications {
3
3
  static applicationFromRaw(application: RawApplication): Application;
4
4
  static applicationToRaw(application: Application): RawApplication;
5
+ static partialApplicationFromRaw(application: Partial<RawApplication>): Partial<Application>;
6
+ static partialApplicationToRaw(application: Partial<Application>): Partial<RawApplication>;
5
7
  }
@@ -21,11 +21,11 @@ class Applications {
21
21
  : undefined,
22
22
  verifyKey: application.verify_key,
23
23
  team: application.team !== null ? Teams_1.Teams.teamFromRaw(application.team) : null,
24
- guildID: application.guild_id,
24
+ guildId: application.guild_id,
25
25
  guild: application.guild !== undefined
26
26
  ? Guilds_1.Guilds.guildFromRaw(application.guild)
27
27
  : undefined,
28
- primarySKUID: application.primary_sku_id,
28
+ primarySKUId: application.primary_sku_id,
29
29
  slug: application.slug,
30
30
  coverImage: application.cover_image,
31
31
  flags: application.flags,
@@ -71,11 +71,117 @@ class Applications {
71
71
  : undefined,
72
72
  verify_key: application.verifyKey,
73
73
  team: application.team !== null ? Teams_1.Teams.teamToRaw(application.team) : null,
74
- guild_id: application.guildID,
74
+ guild_id: application.guildId,
75
75
  guild: application.guild !== undefined
76
76
  ? Guilds_1.Guilds.guildToRaw(application.guild)
77
77
  : undefined,
78
- primary_sku_id: application.primarySKUID,
78
+ primary_sku_id: application.primarySKUId,
79
+ slug: application.slug,
80
+ cover_image: application.coverImage,
81
+ flags: application.flags,
82
+ approximate_guild_count: application.approximateGuildCount,
83
+ approximate_user_install_count: application.approximateUserInstallCount,
84
+ approximate_user_authorization_count: application.approximateUserAuthorizationCount,
85
+ redirect_uris: application.redirectURIs,
86
+ interactions_endpoint_url: application.interactionsEndpointURL,
87
+ role_connections_verification_url: application.roleConnectionsVerificationURL,
88
+ event_webhooks_url: application.eventWebhooksURL,
89
+ event_webhooks_status: application.eventWebhooksStatus,
90
+ event_webhooks_types: application.eventWebhooksTypes,
91
+ tags: application.tags,
92
+ install_params: application.installParams,
93
+ integration_types_config: application.integrationTypesConfig !== undefined
94
+ ? {
95
+ "0": {
96
+ oauth2_install_params: application.integrationTypesConfig?.[0].oauth2InstallParams,
97
+ },
98
+ "1": {
99
+ oauth2_install_params: application.integrationTypesConfig?.[1].oauth2InstallParams,
100
+ },
101
+ }
102
+ : undefined,
103
+ custom_install_url: application.customInstallURL,
104
+ };
105
+ }
106
+ static partialApplicationFromRaw(application) {
107
+ return {
108
+ id: application.id,
109
+ name: application.name,
110
+ icon: application.icon,
111
+ description: application.description,
112
+ rpcOrigins: application.rpc_origins,
113
+ botPublic: application.bot_public,
114
+ botRequireCodeGrant: application.bot_require_code_grant,
115
+ termsOfServiceURL: application.terms_of_service_url,
116
+ privacyPolicyURL: application.privacy_policy_url,
117
+ owner: application.owner !== undefined
118
+ ? Users_1.Users.userFromRaw(application.owner)
119
+ : undefined,
120
+ verifyKey: application.verify_key,
121
+ team: application.team !== undefined
122
+ ? application.team !== null
123
+ ? Teams_1.Teams.teamFromRaw(application.team)
124
+ : null
125
+ : undefined,
126
+ guildId: application.guild_id,
127
+ guild: application.guild !== undefined
128
+ ? Guilds_1.Guilds.guildFromRaw(application.guild)
129
+ : undefined,
130
+ primarySKUId: application.primary_sku_id,
131
+ slug: application.slug,
132
+ coverImage: application.cover_image,
133
+ flags: application.flags,
134
+ approximateGuildCount: application.approximate_guild_count,
135
+ approximateUserInstallCount: application.approximate_user_install_count,
136
+ approximateUserAuthorizationCount: application.approximate_user_authorization_count,
137
+ redirectURIs: application.redirect_uris,
138
+ interactionsEndpointURL: application.interactions_endpoint_url,
139
+ roleConnectionsVerificationURL: application.role_connections_verification_url,
140
+ eventWebhooksURL: application.event_webhooks_url,
141
+ eventWebhooksStatus: application.event_webhooks_status,
142
+ eventWebhooksTypes: application.event_webhooks_types,
143
+ tags: application.tags,
144
+ installParams: application.install_params,
145
+ integrationTypesConfig: application.integration_types_config !== undefined
146
+ ? {
147
+ "0": {
148
+ oauth2InstallParams: application.integration_types_config?.[0]
149
+ .oauth2_install_params,
150
+ },
151
+ "1": {
152
+ oauth2InstallParams: application.integration_types_config?.[1]
153
+ .oauth2_install_params,
154
+ },
155
+ }
156
+ : undefined,
157
+ customInstallURL: application.custom_install_url,
158
+ };
159
+ }
160
+ static partialApplicationToRaw(application) {
161
+ return {
162
+ id: application.id,
163
+ name: application.name,
164
+ icon: application.icon,
165
+ description: application.description,
166
+ rpc_origins: application.rpcOrigins,
167
+ bot_public: application.botPublic,
168
+ bot_require_code_grant: application.botRequireCodeGrant,
169
+ terms_of_service_url: application.termsOfServiceURL,
170
+ privacy_policy_url: application.privacyPolicyURL,
171
+ owner: application.owner !== undefined
172
+ ? Users_1.Users.userToRaw(application.owner)
173
+ : undefined,
174
+ verify_key: application.verifyKey,
175
+ team: application.team !== undefined
176
+ ? application.team !== null
177
+ ? Teams_1.Teams.teamToRaw(application.team)
178
+ : null
179
+ : undefined,
180
+ guild_id: application.guildId,
181
+ guild: application.guild !== undefined
182
+ ? Guilds_1.Guilds.guildToRaw(application.guild)
183
+ : undefined,
184
+ primary_sku_id: application.primarySKUId,
79
185
  slug: application.slug,
80
186
  cover_image: application.coverImage,
81
187
  flags: application.flags,
@@ -11,26 +11,26 @@ const Webhooks_1 = require("./Webhooks");
11
11
  class AuditLogs {
12
12
  static auditLogEntryFromRaw(auditLogEntry) {
13
13
  return {
14
- targetID: auditLogEntry.target_id,
14
+ targetId: auditLogEntry.target_id,
15
15
  changes: auditLogEntry.changes?.map((auditLogChange) => ({
16
16
  newValue: auditLogChange.new_value,
17
17
  oldValue: auditLogChange.old_value,
18
18
  key: auditLogChange.key,
19
19
  })),
20
- userID: auditLogEntry.user_id,
20
+ userId: auditLogEntry.user_id,
21
21
  id: auditLogEntry.id,
22
22
  actionType: auditLogEntry.action_type,
23
23
  options: auditLogEntry.options !== undefined
24
24
  ? {
25
- applicationID: auditLogEntry.options.application_id,
25
+ applicationId: auditLogEntry.options.application_id,
26
26
  autoModerationRuleName: auditLogEntry.options.auto_moderation_rule_name,
27
27
  autoModerationRuleTriggerType: auditLogEntry.options.auto_moderation_rule_trigger_type,
28
- channelID: auditLogEntry.options.channel_id,
28
+ channelId: auditLogEntry.options.channel_id,
29
29
  count: auditLogEntry.options.count,
30
30
  deleteMemberDays: auditLogEntry.options.delete_member_days,
31
31
  id: auditLogEntry.options.id,
32
32
  membersRemoved: auditLogEntry.options.members_removed,
33
- messageID: auditLogEntry.options.message_id,
33
+ messageId: auditLogEntry.options.message_id,
34
34
  roleName: auditLogEntry.options.role_name,
35
35
  type: auditLogEntry.options.type,
36
36
  integrationType: auditLogEntry.options.integration_type,
@@ -41,26 +41,26 @@ class AuditLogs {
41
41
  }
42
42
  static auditLogEntryToRaw(auditLogEntry) {
43
43
  return {
44
- target_id: auditLogEntry.targetID,
44
+ target_id: auditLogEntry.targetId,
45
45
  changes: auditLogEntry.changes?.map((auditLogChange) => ({
46
46
  new_value: auditLogChange.newValue,
47
47
  old_value: auditLogChange.oldValue,
48
48
  key: auditLogChange.key,
49
49
  })),
50
- user_id: auditLogEntry.userID,
50
+ user_id: auditLogEntry.userId,
51
51
  id: auditLogEntry.id,
52
52
  action_type: auditLogEntry.actionType,
53
53
  options: auditLogEntry.options !== undefined
54
54
  ? {
55
- application_id: auditLogEntry.options.applicationID,
55
+ application_id: auditLogEntry.options.applicationId,
56
56
  auto_moderation_rule_name: auditLogEntry.options.autoModerationRuleName,
57
57
  auto_moderation_rule_trigger_type: auditLogEntry.options.autoModerationRuleTriggerType,
58
- channel_id: auditLogEntry.options.channelID,
58
+ channel_id: auditLogEntry.options.channelId,
59
59
  count: auditLogEntry.options.count,
60
60
  delete_member_days: auditLogEntry.options.deleteMemberDays,
61
61
  id: auditLogEntry.options.id,
62
62
  members_removed: auditLogEntry.options.membersRemoved,
63
- message_id: auditLogEntry.options.messageID,
63
+ message_id: auditLogEntry.options.messageId,
64
64
  role_name: auditLogEntry.options.roleName,
65
65
  type: auditLogEntry.options.type,
66
66
  integration_type: auditLogEntry.options.integrationType,
@@ -6,7 +6,7 @@ class AutoModeration {
6
6
  return {
7
7
  type: action.type,
8
8
  metadata: {
9
- channelID: action.metadata.channel_id,
9
+ channelId: action.metadata.channel_id,
10
10
  durationSeconds: action.metadata.duration_seconds,
11
11
  customMessage: action.metadata.custom_message,
12
12
  },
@@ -16,7 +16,7 @@ class AutoModeration {
16
16
  return {
17
17
  type: action.type,
18
18
  metadata: {
19
- channel_id: action.metadata.channelID,
19
+ channel_id: action.metadata.channelId,
20
20
  duration_seconds: action.metadata.durationSeconds,
21
21
  custom_message: action.metadata.customMessage,
22
22
  },
@@ -25,9 +25,9 @@ class AutoModeration {
25
25
  static autoModerationRuleFromRaw(autoModerationRule) {
26
26
  return {
27
27
  id: autoModerationRule.id,
28
- guildID: autoModerationRule.guild_id,
28
+ guildId: autoModerationRule.guild_id,
29
29
  name: autoModerationRule.name,
30
- creatorID: autoModerationRule.creator_id,
30
+ creatorId: autoModerationRule.creator_id,
31
31
  eventType: autoModerationRule.event_type,
32
32
  triggerType: autoModerationRule.trigger_type,
33
33
  triggerMetadata: this.triggerMetadataFromRaw(autoModerationRule.trigger_metadata),
@@ -40,9 +40,9 @@ class AutoModeration {
40
40
  static autoModerationRuleToRaw(autoModerationRule) {
41
41
  return {
42
42
  id: autoModerationRule.id,
43
- guild_id: autoModerationRule.guildID,
43
+ guild_id: autoModerationRule.guildId,
44
44
  name: autoModerationRule.name,
45
- creator_id: autoModerationRule.creatorID,
45
+ creator_id: autoModerationRule.creatorId,
46
46
  event_type: autoModerationRule.eventType,
47
47
  trigger_type: autoModerationRule.triggerType,
48
48
  trigger_metadata: this.triggerMetadataToRaw(autoModerationRule.triggerMetadata),
@@ -8,7 +8,7 @@ class Channels {
8
8
  return {
9
9
  id: channel.id,
10
10
  type: channel.type,
11
- guildID: channel.guild_id,
11
+ guildId: channel.guild_id,
12
12
  position: channel.position,
13
13
  permissionOverwrites: channel.permission_overwrites?.map((overwrite) => ({
14
14
  id: overwrite.id,
@@ -19,16 +19,16 @@ class Channels {
19
19
  name: channel.name,
20
20
  topic: channel.topic,
21
21
  nsfw: channel.nsfw,
22
- lastMessageID: channel.last_message_id,
22
+ lastMessageId: channel.last_message_id,
23
23
  bitrate: channel.bitrate,
24
24
  userLimit: channel.user_limit,
25
25
  rateLimitPerUser: channel.rate_limit_per_user,
26
26
  recipients: channel.recipients?.map((recipient) => Users_1.Users.userFromRaw(recipient)),
27
27
  icon: channel.icon,
28
- ownerID: channel.owner_id,
29
- applicationID: channel.application_id,
28
+ ownerId: channel.owner_id,
29
+ applicationId: channel.application_id,
30
30
  managed: channel.managed,
31
- parentID: channel.parent_id,
31
+ parentId: channel.parent_id,
32
32
  lastPinTimestamp: channel.last_pin_timestamp,
33
33
  rtcRegion: channel.rtc_region,
34
34
  videoQualityMode: channel.video_quality_mode,
@@ -55,14 +55,14 @@ class Channels {
55
55
  id: availableTag.id,
56
56
  name: availableTag.name,
57
57
  moderated: availableTag.moderated,
58
- emojiID: availableTag.emoji_id,
58
+ emojiId: availableTag.emoji_id,
59
59
  emojiName: availableTag.emoji_name,
60
60
  })),
61
61
  appliedTags: channel.applied_tags,
62
62
  defaultReactionEmoji: channel.default_reaction_emoji !== undefined
63
63
  ? channel.default_reaction_emoji !== null
64
64
  ? {
65
- emojiID: channel.default_reaction_emoji.emoji_id,
65
+ emojiId: channel.default_reaction_emoji.emoji_id,
66
66
  emojiName: channel.default_reaction_emoji.emoji_name,
67
67
  }
68
68
  : null
@@ -76,7 +76,7 @@ class Channels {
76
76
  return {
77
77
  id: channel.id,
78
78
  type: channel.type,
79
- guild_id: channel.guildID,
79
+ guild_id: channel.guildId,
80
80
  position: channel.position,
81
81
  permission_overwrites: channel.permissionOverwrites?.map((overwrite) => ({
82
82
  id: overwrite.id,
@@ -87,16 +87,16 @@ class Channels {
87
87
  name: channel.name,
88
88
  topic: channel.topic,
89
89
  nsfw: channel.nsfw,
90
- last_message_id: channel.lastMessageID,
90
+ last_message_id: channel.lastMessageId,
91
91
  bitrate: channel.bitrate,
92
92
  user_limit: channel.userLimit,
93
93
  rate_limit_per_user: channel.rateLimitPerUser,
94
94
  recipients: channel.recipients?.map((recipient) => Users_1.Users.userToRaw(recipient)),
95
95
  icon: channel.icon,
96
- owner_id: channel.ownerID,
97
- application_id: channel.applicationID,
96
+ owner_id: channel.ownerId,
97
+ application_id: channel.applicationId,
98
98
  managed: channel.managed,
99
- parent_id: channel.parentID,
99
+ parent_id: channel.parentId,
100
100
  last_pin_timestamp: channel.lastPinTimestamp,
101
101
  rtc_region: channel.rtcRegion,
102
102
  video_quality_mode: channel.videoQualityMode,
@@ -123,14 +123,14 @@ class Channels {
123
123
  id: availableTag.id,
124
124
  name: availableTag.name,
125
125
  moderated: availableTag.moderated,
126
- emoji_id: availableTag.emojiID,
126
+ emoji_id: availableTag.emojiId,
127
127
  emoji_name: availableTag.emojiName,
128
128
  })),
129
129
  applied_tags: channel.appliedTags,
130
130
  default_reaction_emoji: channel.defaultReactionEmoji !== undefined
131
131
  ? channel.defaultReactionEmoji !== null
132
132
  ? {
133
- emoji_id: channel.defaultReactionEmoji.emojiID,
133
+ emoji_id: channel.defaultReactionEmoji.emojiId,
134
134
  emoji_name: channel.defaultReactionEmoji.emojiName,
135
135
  }
136
136
  : null
@@ -143,7 +143,7 @@ class Channels {
143
143
  static threadMemberFromRaw(threadMember) {
144
144
  return {
145
145
  id: threadMember.id,
146
- userID: threadMember.user_id,
146
+ userId: threadMember.user_id,
147
147
  joinTimestamp: threadMember.join_timestamp,
148
148
  flags: threadMember.flags,
149
149
  member: threadMember.member !== undefined
@@ -154,7 +154,7 @@ class Channels {
154
154
  static threadMemberToRaw(threadMember) {
155
155
  return {
156
156
  id: threadMember.id,
157
- user_id: threadMember.userID,
157
+ user_id: threadMember.userId,
158
158
  join_timestamp: threadMember.joinTimestamp,
159
159
  flags: threadMember.flags,
160
160
  member: threadMember.member !== undefined
@@ -57,8 +57,8 @@ class Components {
57
57
  style: button.style,
58
58
  label: button.label,
59
59
  emoji: button.emoji,
60
- customID: button.custom_id,
61
- skuID: button.sku_id,
60
+ customId: button.custom_id,
61
+ skuId: button.sku_id,
62
62
  url: button.url,
63
63
  disabled: button.disabled,
64
64
  id: button.id,
@@ -70,8 +70,8 @@ class Components {
70
70
  style: button.style,
71
71
  label: button.label,
72
72
  emoji: button.emoji,
73
- custom_id: button.customID,
74
- sku_id: button.skuID,
73
+ custom_id: button.customId,
74
+ sku_id: button.skuId,
75
75
  url: button.url,
76
76
  disabled: button.disabled,
77
77
  id: button.id,
@@ -81,7 +81,7 @@ class Components {
81
81
  return {
82
82
  type: channelSelect.type,
83
83
  id: channelSelect.id,
84
- customID: channelSelect.custom_id,
84
+ customId: channelSelect.custom_id,
85
85
  channelTypes: channelSelect.channel_types,
86
86
  placeholder: channelSelect.placeholder,
87
87
  defaultValues: channelSelect.default_values,
@@ -94,7 +94,7 @@ class Components {
94
94
  return {
95
95
  type: channelSelect.type,
96
96
  id: channelSelect.id,
97
- custom_id: channelSelect.customID,
97
+ custom_id: channelSelect.customId,
98
98
  channel_types: channelSelect.channelTypes,
99
99
  placeholder: channelSelect.placeholder,
100
100
  default_values: channelSelect.defaultValues,
@@ -269,7 +269,7 @@ class Components {
269
269
  return {
270
270
  type: mentionableSelect.type,
271
271
  id: mentionableSelect.id,
272
- customID: mentionableSelect.custom_id,
272
+ customId: mentionableSelect.custom_id,
273
273
  placeholder: mentionableSelect.placeholder,
274
274
  defaultValues: mentionableSelect.default_values,
275
275
  minValues: mentionableSelect.min_values,
@@ -281,7 +281,7 @@ class Components {
281
281
  return {
282
282
  type: mentionableSelect.type,
283
283
  id: mentionableSelect.id,
284
- custom_id: mentionableSelect.customID,
284
+ custom_id: mentionableSelect.customId,
285
285
  placeholder: mentionableSelect.placeholder,
286
286
  default_values: mentionableSelect.defaultValues,
287
287
  min_values: mentionableSelect.minValues,
@@ -293,7 +293,7 @@ class Components {
293
293
  return {
294
294
  type: roleSelect.type,
295
295
  id: roleSelect.id,
296
- customID: roleSelect.custom_id,
296
+ customId: roleSelect.custom_id,
297
297
  placeholder: roleSelect.placeholder,
298
298
  defaultValues: roleSelect.default_values,
299
299
  minValues: roleSelect.min_values,
@@ -305,7 +305,7 @@ class Components {
305
305
  return {
306
306
  type: roleSelect.type,
307
307
  id: roleSelect.id,
308
- custom_id: roleSelect.customID,
308
+ custom_id: roleSelect.customId,
309
309
  placeholder: roleSelect.placeholder,
310
310
  default_values: roleSelect.defaultValues,
311
311
  min_values: roleSelect.minValues,
@@ -377,7 +377,7 @@ class Components {
377
377
  return {
378
378
  type: stringSelect.type,
379
379
  id: stringSelect.id,
380
- customID: stringSelect.custom_id,
380
+ customId: stringSelect.custom_id,
381
381
  placeholder: stringSelect.placeholder,
382
382
  options: stringSelect.options?.map((option) => ({
383
383
  label: option.label,
@@ -400,7 +400,7 @@ class Components {
400
400
  static stringSelectToRaw(stringSelect) {
401
401
  return {
402
402
  type: stringSelect.type,
403
- custom_id: stringSelect.customID,
403
+ custom_id: stringSelect.customId,
404
404
  placeholder: stringSelect.placeholder,
405
405
  options: stringSelect.options?.map((option) => ({
406
406
  label: option.label,
@@ -437,7 +437,7 @@ class Components {
437
437
  static textInputFromRaw(textInput) {
438
438
  return {
439
439
  type: textInput.type,
440
- customID: textInput.custom_id,
440
+ customId: textInput.custom_id,
441
441
  style: textInput.style,
442
442
  minLength: textInput.min_length,
443
443
  maxLength: textInput.max_length,
@@ -451,7 +451,7 @@ class Components {
451
451
  static textInputToRaw(textInput) {
452
452
  return {
453
453
  type: textInput.type,
454
- custom_id: textInput.customID,
454
+ custom_id: textInput.customId,
455
455
  style: textInput.style,
456
456
  min_length: textInput.minLength,
457
457
  max_length: textInput.maxLength,
@@ -502,7 +502,7 @@ class Components {
502
502
  return {
503
503
  type: userSelect.type,
504
504
  id: userSelect.id,
505
- customID: userSelect.custom_id,
505
+ customId: userSelect.custom_id,
506
506
  placeholder: userSelect.placeholder,
507
507
  defaultValues: userSelect.default_values,
508
508
  minValues: userSelect.min_values,
@@ -514,7 +514,7 @@ class Components {
514
514
  return {
515
515
  type: userSelect.type,
516
516
  id: userSelect.id,
517
- custom_id: userSelect.customID,
517
+ custom_id: userSelect.customId,
518
518
  placeholder: userSelect.placeholder,
519
519
  default_values: userSelect.defaultValues,
520
520
  min_values: userSelect.minValues,
@@ -2,6 +2,6 @@ import type { RawEntitlement, Entitlement } from "../types/entitlements";
2
2
  export declare class Entitlements {
3
3
  static entitlementFromRaw(entitlement: RawEntitlement): Entitlement;
4
4
  static entitlementToRaw(entitlement: Entitlement): RawEntitlement;
5
- static testEntitlementFromRaw(entitlement: Omit<RawEntitlement, "starts_at" | "ends_at" | "subscription_id">): Omit<Entitlement, "startsAt" | "endsAt" | "subscriptionID">;
6
- static testEntitlementToRaw(entitlement: Omit<Entitlement, "startsAt" | "endsAt" | "subscriptionID">): Omit<RawEntitlement, "starts_at" | "ends_at" | "subscription_id">;
5
+ static testEntitlementFromRaw(entitlement: Omit<RawEntitlement, "starts_at" | "ends_at" | "subscription_id">): Omit<Entitlement, "startsAt" | "endsAt" | "subscriptionId">;
6
+ static testEntitlementToRaw(entitlement: Omit<Entitlement, "startsAt" | "endsAt" | "subscriptionId">): Omit<RawEntitlement, "starts_at" | "ends_at" | "subscription_id">;
7
7
  }
@@ -5,53 +5,53 @@ class Entitlements {
5
5
  static entitlementFromRaw(entitlement) {
6
6
  return {
7
7
  id: entitlement.id,
8
- skuID: entitlement.sku_id,
9
- applicationID: entitlement.application_id,
10
- userID: entitlement.user_id,
8
+ skuId: entitlement.sku_id,
9
+ applicationId: entitlement.application_id,
10
+ userId: entitlement.user_id,
11
11
  type: entitlement.type,
12
12
  deleted: entitlement.deleted,
13
13
  consumed: entitlement.consumed,
14
14
  startsAt: entitlement.starts_at,
15
15
  endsAt: entitlement.ends_at,
16
- guildID: entitlement.guild_id,
16
+ guildId: entitlement.guild_id,
17
17
  };
18
18
  }
19
19
  static entitlementToRaw(entitlement) {
20
20
  return {
21
21
  id: entitlement.id,
22
- sku_id: entitlement.skuID,
23
- application_id: entitlement.applicationID,
24
- user_id: entitlement.userID,
22
+ sku_id: entitlement.skuId,
23
+ application_id: entitlement.applicationId,
24
+ user_id: entitlement.userId,
25
25
  type: entitlement.type,
26
26
  deleted: entitlement.deleted,
27
27
  consumed: entitlement.consumed,
28
28
  starts_at: entitlement.startsAt,
29
29
  ends_at: entitlement.endsAt,
30
- guild_id: entitlement.guildID,
30
+ guild_id: entitlement.guildId,
31
31
  };
32
32
  }
33
33
  static testEntitlementFromRaw(entitlement) {
34
34
  return {
35
35
  id: entitlement.id,
36
- skuID: entitlement.sku_id,
37
- applicationID: entitlement.application_id,
38
- userID: entitlement.user_id,
36
+ skuId: entitlement.sku_id,
37
+ applicationId: entitlement.application_id,
38
+ userId: entitlement.user_id,
39
39
  type: entitlement.type,
40
40
  deleted: entitlement.deleted,
41
41
  consumed: entitlement.consumed,
42
- guildID: entitlement.guild_id,
42
+ guildId: entitlement.guild_id,
43
43
  };
44
44
  }
45
45
  static testEntitlementToRaw(entitlement) {
46
46
  return {
47
47
  id: entitlement.id,
48
- sku_id: entitlement.skuID,
49
- application_id: entitlement.applicationID,
50
- user_id: entitlement.userID,
48
+ sku_id: entitlement.skuId,
49
+ application_id: entitlement.applicationId,
50
+ user_id: entitlement.userId,
51
51
  type: entitlement.type,
52
52
  deleted: entitlement.deleted,
53
53
  consumed: entitlement.consumed,
54
- guild_id: entitlement.guildID,
54
+ guild_id: entitlement.guildId,
55
55
  };
56
56
  }
57
57
  }
@@ -34,9 +34,9 @@ class GuildScheduledEvents {
34
34
  static guildScheduledEventFromRaw(guildScheduledEvent) {
35
35
  return {
36
36
  id: guildScheduledEvent.id,
37
- guildID: guildScheduledEvent.guild_id,
38
- channelID: guildScheduledEvent.channel_id,
39
- creatorID: guildScheduledEvent.creator_id,
37
+ guildId: guildScheduledEvent.guild_id,
38
+ channelId: guildScheduledEvent.channel_id,
39
+ creatorId: guildScheduledEvent.creator_id,
40
40
  name: guildScheduledEvent.name,
41
41
  description: guildScheduledEvent.description,
42
42
  scheduledStartTime: guildScheduledEvent.scheduled_start_time,
@@ -44,7 +44,7 @@ class GuildScheduledEvents {
44
44
  privacyLevel: guildScheduledEvent.privacy_level,
45
45
  status: guildScheduledEvent.status,
46
46
  entityType: guildScheduledEvent.entity_type,
47
- entityID: guildScheduledEvent.entity_id,
47
+ entityId: guildScheduledEvent.entity_id,
48
48
  entityMetadata: guildScheduledEvent.entity_metadata,
49
49
  creator: guildScheduledEvent.creator !== undefined
50
50
  ? Users_1.Users.userFromRaw(guildScheduledEvent.creator)
@@ -59,9 +59,9 @@ class GuildScheduledEvents {
59
59
  static guildScheduledEventToRaw(guildScheduledEvent) {
60
60
  return {
61
61
  id: guildScheduledEvent.id,
62
- guild_id: guildScheduledEvent.guildID,
63
- channel_id: guildScheduledEvent.channelID,
64
- creator_id: guildScheduledEvent.creatorID,
62
+ guild_id: guildScheduledEvent.guildId,
63
+ channel_id: guildScheduledEvent.channelId,
64
+ creator_id: guildScheduledEvent.creatorId,
65
65
  name: guildScheduledEvent.name,
66
66
  description: guildScheduledEvent.description,
67
67
  scheduled_start_time: guildScheduledEvent.scheduledStartTime,
@@ -69,7 +69,7 @@ class GuildScheduledEvents {
69
69
  privacy_level: guildScheduledEvent.privacyLevel,
70
70
  status: guildScheduledEvent.status,
71
71
  entity_type: guildScheduledEvent.entityType,
72
- entity_id: guildScheduledEvent.entityID,
72
+ entity_id: guildScheduledEvent.entityId,
73
73
  entity_metadata: guildScheduledEvent.entityMetadata,
74
74
  creator: guildScheduledEvent.creator !== undefined
75
75
  ? Users_1.Users.userToRaw(guildScheduledEvent.creator)
@@ -10,11 +10,11 @@ class GuildTemplates {
10
10
  name: guildTemplate.name,
11
11
  description: guildTemplate.description,
12
12
  usageCount: guildTemplate.usage_count,
13
- creatorID: guildTemplate.creator_id,
13
+ creatorId: guildTemplate.creator_id,
14
14
  creator: Users_1.Users.userFromRaw(guildTemplate.creator),
15
15
  createdAt: guildTemplate.created_at,
16
16
  updatedAt: guildTemplate.updated_at,
17
- sourceGuildID: guildTemplate.source_guild_id,
17
+ sourceGuildId: guildTemplate.source_guild_id,
18
18
  serializedSourceGuild: Guilds_1.Guilds.guildFromRaw(guildTemplate.serialized_source_guild),
19
19
  isDirty: guildTemplate.is_dirty,
20
20
  };
@@ -25,11 +25,11 @@ class GuildTemplates {
25
25
  name: guildTemplate.name,
26
26
  description: guildTemplate.description,
27
27
  usage_count: guildTemplate.usageCount,
28
- creator_id: guildTemplate.creatorID,
28
+ creator_id: guildTemplate.creatorId,
29
29
  creator: Users_1.Users.userToRaw(guildTemplate.creator),
30
30
  created_at: guildTemplate.createdAt,
31
31
  updated_at: guildTemplate.updatedAt,
32
- source_guild_id: guildTemplate.sourceGuildID,
32
+ source_guild_id: guildTemplate.sourceGuildId,
33
33
  serialized_source_guild: Guilds_1.Guilds.guildToRaw(guildTemplate.serializedSourceGuild),
34
34
  is_dirty: guildTemplate.isDirty,
35
35
  };