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.
- package/dist/lib/Client.d.ts +252 -251
- package/dist/lib/Client.js +472 -471
- package/dist/lib/gateway/Shard.d.ts +7 -4
- package/dist/lib/gateway/Shard.js +261 -191
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/index.js +4 -0
- package/dist/lib/rest/Endpoints.d.ts +94 -94
- package/dist/lib/rest/Endpoints.js +104 -104
- package/dist/lib/transformers/ApplicationCommands.js +4 -4
- package/dist/lib/transformers/Applications.d.ts +2 -0
- package/dist/lib/transformers/Applications.js +110 -4
- package/dist/lib/transformers/AuditLogs.js +10 -10
- package/dist/lib/transformers/AutoModeration.js +6 -6
- package/dist/lib/transformers/Channels.js +16 -16
- package/dist/lib/transformers/Components.js +16 -16
- package/dist/lib/transformers/Entitlements.d.ts +2 -2
- package/dist/lib/transformers/Entitlements.js +16 -16
- package/dist/lib/transformers/GuildScheduledEvents.js +8 -8
- package/dist/lib/transformers/GuildTemplates.js +4 -4
- package/dist/lib/transformers/Guilds.js +28 -28
- package/dist/lib/transformers/Interactions.js +44 -44
- package/dist/lib/transformers/Lobbies.js +2 -2
- package/dist/lib/transformers/Messages.js +18 -18
- package/dist/lib/transformers/Polls.js +2 -2
- package/dist/lib/transformers/Presences.js +6 -6
- package/dist/lib/transformers/Roles.js +6 -6
- package/dist/lib/transformers/SKUs.js +2 -2
- package/dist/lib/transformers/Soundboards.js +6 -6
- package/dist/lib/transformers/StageInstances.js +6 -6
- package/dist/lib/transformers/Stickers.js +3 -3
- package/dist/lib/transformers/Subscriptions.js +8 -8
- package/dist/lib/transformers/Teams.js +4 -4
- package/dist/lib/transformers/Users.js +6 -6
- package/dist/lib/transformers/Voice.js +8 -8
- package/dist/lib/transformers/Webhooks.js +6 -6
- package/dist/lib/types/application-command.d.ts +9 -4
- package/dist/lib/types/application-role-connection-metadata.d.ts +1 -0
- package/dist/lib/types/application.d.ts +12 -7
- package/dist/lib/types/audit-log.d.ts +9 -5
- package/dist/lib/types/auto-moderation.d.ts +7 -3
- package/dist/lib/types/channel.d.ts +17 -23
- package/dist/lib/types/common.d.ts +2 -0
- package/dist/lib/types/components.d.ts +43 -15
- package/dist/lib/types/emoji.d.ts +1 -0
- package/dist/lib/types/entitlements.d.ts +5 -4
- package/dist/lib/types/gateway-events.d.ts +181 -130
- package/dist/lib/types/guild-scheduled-event.d.ts +10 -5
- package/dist/lib/types/guild-template.d.ts +3 -2
- package/dist/lib/types/guild.d.ts +33 -17
- package/dist/lib/types/interaction.d.ts +23 -10
- package/dist/lib/types/invite.d.ts +3 -0
- package/dist/lib/types/lobby.d.ts +3 -1
- package/dist/lib/types/message.d.ts +29 -15
- package/dist/lib/types/poll.d.ts +7 -1
- package/dist/lib/types/role.d.ts +6 -3
- package/dist/lib/types/sku.d.ts +2 -1
- package/dist/lib/types/soundboard.d.ts +4 -3
- package/dist/lib/types/stage-instance.d.ts +4 -3
- package/dist/lib/types/sticker.d.ts +8 -5
- package/dist/lib/types/subscription.d.ts +6 -5
- package/dist/lib/types/team.d.ts +4 -2
- package/dist/lib/types/user.d.ts +10 -3
- package/dist/lib/types/voice.d.ts +6 -4
- package/dist/lib/types/webhook.d.ts +4 -3
- package/dist/lib/utils/CDN.d.ts +22 -22
- package/dist/lib/utils/CDN.js +22 -22
- package/dist/lib/utils/formatters.d.ts +6 -6
- package/dist/lib/utils/formatters.js +18 -18
- package/dist/package.json +1 -1
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
29
|
-
|
|
28
|
+
ownerId: channel.owner_id,
|
|
29
|
+
applicationId: channel.application_id,
|
|
30
30
|
managed: channel.managed,
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
97
|
-
application_id: channel.
|
|
96
|
+
owner_id: channel.ownerId,
|
|
97
|
+
application_id: channel.applicationId,
|
|
98
98
|
managed: channel.managed,
|
|
99
|
-
parent_id: channel.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
61
|
-
|
|
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.
|
|
74
|
-
sku_id: button.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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" | "
|
|
6
|
-
static testEntitlementToRaw(entitlement: Omit<Entitlement, "startsAt" | "endsAt" | "
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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.
|
|
23
|
-
application_id: entitlement.
|
|
24
|
-
user_id: entitlement.
|
|
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.
|
|
30
|
+
guild_id: entitlement.guildId,
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
static testEntitlementFromRaw(entitlement) {
|
|
34
34
|
return {
|
|
35
35
|
id: entitlement.id,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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.
|
|
49
|
-
application_id: entitlement.
|
|
50
|
-
user_id: entitlement.
|
|
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.
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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.
|
|
63
|
-
channel_id: guildScheduledEvent.
|
|
64
|
-
creator_id: guildScheduledEvent.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
13
|
-
|
|
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.
|
|
25
|
-
guild_id: guildApplicationCommandPermissions.
|
|
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
|
-
|
|
42
|
+
ownerId: guild.owner_id,
|
|
43
43
|
permissions: guild.permissions,
|
|
44
44
|
region: guild.region,
|
|
45
|
-
|
|
45
|
+
afkChannelId: guild.afk_channel_id,
|
|
46
46
|
afkTimeout: guild.afk_timeout,
|
|
47
47
|
widgetEnabled: guild.widget_enabled,
|
|
48
|
-
|
|
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
|
-
|
|
57
|
-
|
|
56
|
+
applicationId: guild.application_id,
|
|
57
|
+
systemChannelId: guild.system_channel_id,
|
|
58
58
|
systemChannelFlags: guild.system_channel_flags,
|
|
59
|
-
|
|
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
|
-
|
|
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
|
-
|
|
77
|
+
channelId: welcomeScreenChannel.channel_id,
|
|
78
78
|
description: welcomeScreenChannel.description,
|
|
79
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
159
|
+
owner_id: guild.ownerId,
|
|
160
160
|
permissions: guild.permissions,
|
|
161
161
|
region: guild.region,
|
|
162
|
-
afk_channel_id: guild.
|
|
162
|
+
afk_channel_id: guild.afkChannelId,
|
|
163
163
|
afk_timeout: guild.afkTimeout,
|
|
164
164
|
widget_enabled: guild.widgetEnabled,
|
|
165
|
-
widget_channel_id: guild.
|
|
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.
|
|
174
|
-
system_channel_id: guild.
|
|
173
|
+
application_id: guild.applicationId,
|
|
174
|
+
system_channel_id: guild.systemChannelId,
|
|
175
175
|
system_channel_flags: guild.systemChannelFlags,
|
|
176
|
-
rules_channel_id: guild.
|
|
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.
|
|
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.
|
|
194
|
+
channel_id: welcomeScreenChannel.channelId,
|
|
195
195
|
description: welcomeScreenChannel.description,
|
|
196
|
-
emoji_id: welcomeScreenChannel.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
254
|
+
role_id: integration.roleId,
|
|
255
255
|
enable_emoticons: integration.enableEmoticons,
|
|
256
256
|
expire_behavior: integration.expireBehavior,
|
|
257
257
|
expire_grace_period: integration.expireGracePeriod,
|