disgroove 2.2.7 → 3.0.0-dev.513aea4

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 +7 -4
  4. package/dist/lib/gateway/Shard.js +261 -191
  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
@@ -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
  };
@@ -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,