disgroove 1.2.9 → 1.3.0-dev.3af784e
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/Client.d.ts +43 -43
- package/dist/Client.js +76 -76
- package/dist/Client.js.map +1 -1
- package/dist/gateway/Shard.js +32 -36
- package/dist/gateway/Shard.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/rest/Endpoints.d.ts +1 -1
- package/dist/rest/Endpoints.js +3 -3
- package/dist/rest/RequestsManager.js +1 -1
- package/dist/rest/RequestsManager.js.map +1 -1
- package/dist/structures/Application.d.ts +72 -72
- package/dist/structures/Application.js +128 -155
- package/dist/structures/Application.js.map +1 -1
- package/dist/structures/ApplicationCommand.d.ts +4 -4
- package/dist/structures/ApplicationCommand.js +19 -19
- package/dist/structures/ApplicationCommand.js.map +1 -1
- package/dist/structures/AuditLog.d.ts +20 -0
- package/dist/structures/AuditLog.js +76 -0
- package/dist/structures/AuditLog.js.map +1 -0
- package/dist/structures/AutoModerationRule.d.ts +7 -7
- package/dist/structures/AutoModerationRule.js +7 -7
- package/dist/structures/AutoModerationRule.js.map +1 -1
- package/dist/structures/Channel.d.ts +134 -134
- package/dist/structures/Channel.js +263 -263
- package/dist/structures/Channel.js.map +1 -1
- package/dist/structures/ClientApplication.d.ts +324 -0
- package/dist/structures/ClientApplication.js +241 -0
- package/dist/structures/ClientApplication.js.map +1 -0
- package/dist/structures/Emoji.d.ts +2 -2
- package/dist/structures/Emoji.js +9 -9
- package/dist/structures/Emoji.js.map +1 -1
- package/dist/structures/Entitlement.d.ts +24 -0
- package/dist/structures/Entitlement.js +68 -0
- package/dist/structures/Entitlement.js.map +1 -0
- package/dist/structures/Guild.d.ts +311 -311
- package/dist/structures/Guild.js +615 -661
- package/dist/structures/Guild.js.map +1 -1
- package/dist/structures/GuildMember.d.ts +10 -10
- package/dist/structures/GuildMember.js +30 -30
- package/dist/structures/GuildMember.js.map +1 -1
- package/dist/structures/GuildScheduledEvent.d.ts +2 -2
- package/dist/structures/GuildScheduledEvent.js +7 -7
- package/dist/structures/GuildScheduledEvent.js.map +1 -1
- package/dist/structures/GuildTemplate.d.ts +4 -4
- package/dist/structures/GuildTemplate.js +7 -9
- package/dist/structures/GuildTemplate.js.map +1 -1
- package/dist/structures/Integration.d.ts +1 -1
- package/dist/structures/Integration.js +2 -2
- package/dist/structures/Integration.js.map +1 -1
- package/dist/structures/Interaction.d.ts +27 -42
- package/dist/structures/Interaction.js +97 -130
- package/dist/structures/Interaction.js.map +1 -1
- package/dist/structures/Invite.d.ts +2 -1
- package/dist/structures/Invite.js +1 -1
- package/dist/structures/Invite.js.map +1 -1
- package/dist/structures/Message.d.ts +23 -20
- package/dist/structures/Message.js +71 -206
- package/dist/structures/Message.js.map +1 -1
- package/dist/structures/PartialApplication.d.ts +70 -70
- package/dist/structures/PartialApplication.js +128 -155
- package/dist/structures/PartialApplication.js.map +1 -1
- package/dist/structures/Role.d.ts +2 -2
- package/dist/structures/Role.js +7 -7
- package/dist/structures/Role.js.map +1 -1
- package/dist/structures/SKU.d.ts +23 -0
- package/dist/structures/SKU.js +63 -0
- package/dist/structures/SKU.js.map +1 -0
- package/dist/structures/StageInstance.d.ts +3 -3
- package/dist/structures/StageInstance.js +7 -7
- package/dist/structures/StageInstance.js.map +1 -1
- package/dist/structures/Sticker.d.ts +2 -2
- package/dist/structures/Sticker.js +9 -9
- package/dist/structures/Sticker.js.map +1 -1
- package/dist/structures/Team.js +2 -2
- package/dist/structures/Team.js.map +1 -1
- package/dist/structures/TestEntitlement.d.ts +23 -0
- package/dist/structures/TestEntitlement.js +61 -0
- package/dist/structures/TestEntitlement.js.map +1 -0
- package/dist/structures/UnavailableGuild.d.ts +2 -487
- package/dist/structures/UnavailableGuild.js +1 -917
- package/dist/structures/UnavailableGuild.js.map +1 -1
- package/dist/structures/User.d.ts +13 -13
- package/dist/structures/User.js +35 -34
- package/dist/structures/User.js.map +1 -1
- package/dist/structures/Webhook.d.ts +26 -26
- package/dist/structures/Webhook.js +116 -148
- package/dist/structures/Webhook.js.map +1 -1
- package/dist/structures/index.d.ts +5 -1
- package/dist/structures/index.js +5 -1
- package/dist/structures/index.js.map +1 -1
- package/dist/types/application.d.ts +3 -3
- package/dist/types/auto-moderation.d.ts +3 -3
- package/dist/types/channel.d.ts +36 -21
- package/dist/types/gateway-events.d.ts +12 -12
- package/dist/types/guild.d.ts +5 -5
- package/dist/types/interaction.d.ts +57 -40
- package/dist/types/invite.d.ts +3 -2
- package/dist/types/message-components.d.ts +4 -4
- package/dist/types/sku.d.ts +1 -1
- package/dist/types/stage-instance.d.ts +3 -2
- package/dist/types/team.d.ts +1 -1
- package/dist/types/user.d.ts +3 -3
- package/dist/utils/Util.d.ts +11 -482
- package/dist/utils/Util.js +329 -151
- package/dist/utils/Util.js.map +1 -1
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ export interface RawChannelPinsUpdateEventFields {
|
|
|
39
39
|
}
|
|
40
40
|
/** https://discord.com/developers/docs/topics/gateway-events#guild-create-guild-create-extra-fields */
|
|
41
41
|
export interface RawGuildCreateEventExtraFields {
|
|
42
|
-
joined_at?:
|
|
42
|
+
joined_at?: string;
|
|
43
43
|
large?: boolean;
|
|
44
44
|
unavailable?: boolean;
|
|
45
45
|
member_count?: number;
|
|
@@ -91,7 +91,7 @@ export interface RawGuildMemberUpdateEventFields {
|
|
|
91
91
|
user: RawUser;
|
|
92
92
|
nick?: string | null;
|
|
93
93
|
avatar: string | null;
|
|
94
|
-
joined_at?:
|
|
94
|
+
joined_at?: string | null;
|
|
95
95
|
premium_since?: number | null;
|
|
96
96
|
deaf?: boolean;
|
|
97
97
|
mute?: boolean;
|
|
@@ -153,7 +153,7 @@ export interface RawIntegrationDeleteEventFields {
|
|
|
153
153
|
export interface RawInviteCreateEventFields {
|
|
154
154
|
channel_id: string;
|
|
155
155
|
code: string;
|
|
156
|
-
created_at:
|
|
156
|
+
created_at: string;
|
|
157
157
|
guild_id?: string;
|
|
158
158
|
inviter?: RawUser;
|
|
159
159
|
max_age: number;
|
|
@@ -238,7 +238,7 @@ export interface RawActivity {
|
|
|
238
238
|
name: string;
|
|
239
239
|
type: ActivityType;
|
|
240
240
|
url?: string | null;
|
|
241
|
-
created_at:
|
|
241
|
+
created_at: string;
|
|
242
242
|
timestamps?: RawActivityTimestamps;
|
|
243
243
|
application_id?: string;
|
|
244
244
|
details?: string | null;
|
|
@@ -329,7 +329,7 @@ export interface JSONChannelPinsUpdateEventFields {
|
|
|
329
329
|
lastPinTimestamp?: string | null;
|
|
330
330
|
}
|
|
331
331
|
export interface JSONGuildCreateEventExtraFields {
|
|
332
|
-
joinedAt?:
|
|
332
|
+
joinedAt?: string;
|
|
333
333
|
large?: boolean;
|
|
334
334
|
unavailable?: boolean;
|
|
335
335
|
memberCount?: number;
|
|
@@ -373,7 +373,7 @@ export interface JSONGuildMemberUpdateEventFields {
|
|
|
373
373
|
user: JSONUser;
|
|
374
374
|
nick?: string | null;
|
|
375
375
|
avatar: string | null;
|
|
376
|
-
joinedAt?:
|
|
376
|
+
joinedAt?: string | null;
|
|
377
377
|
premiumSince?: number | null;
|
|
378
378
|
deaf?: boolean;
|
|
379
379
|
mute?: boolean;
|
|
@@ -425,7 +425,7 @@ export interface JSONIntegrationDeleteEventFields {
|
|
|
425
425
|
export interface JSONInviteCreateEventFields {
|
|
426
426
|
channelId: string;
|
|
427
427
|
code: string;
|
|
428
|
-
createdAt:
|
|
428
|
+
createdAt: string;
|
|
429
429
|
guildId?: string;
|
|
430
430
|
inviter?: JSONUser;
|
|
431
431
|
maxAge: number;
|
|
@@ -499,7 +499,7 @@ export interface JSONActivity {
|
|
|
499
499
|
name: string;
|
|
500
500
|
type: ActivityType;
|
|
501
501
|
url?: string | null;
|
|
502
|
-
createdAt:
|
|
502
|
+
createdAt: string;
|
|
503
503
|
timestamps?: JSONActivityTimestamps;
|
|
504
504
|
applicationId?: string;
|
|
505
505
|
details?: string | null;
|
|
@@ -582,7 +582,7 @@ export interface ChannelPinsUpdateEventFields {
|
|
|
582
582
|
lastPinTimestamp?: string | null;
|
|
583
583
|
}
|
|
584
584
|
export interface GuildCreateEventExtraFields {
|
|
585
|
-
joinedAt?:
|
|
585
|
+
joinedAt?: string;
|
|
586
586
|
large?: boolean;
|
|
587
587
|
unavailable?: boolean;
|
|
588
588
|
memberCount?: number;
|
|
@@ -626,7 +626,7 @@ export interface GuildMemberUpdateEventFields {
|
|
|
626
626
|
user: User;
|
|
627
627
|
nick?: string | null;
|
|
628
628
|
avatar: string | null;
|
|
629
|
-
joinedAt?:
|
|
629
|
+
joinedAt?: string | null;
|
|
630
630
|
premiumSince?: number | null;
|
|
631
631
|
deaf?: boolean;
|
|
632
632
|
mute?: boolean;
|
|
@@ -678,7 +678,7 @@ export interface IntegrationDeleteEventFields {
|
|
|
678
678
|
export interface InviteCreateEventFields {
|
|
679
679
|
channelId: string;
|
|
680
680
|
code: string;
|
|
681
|
-
createdAt:
|
|
681
|
+
createdAt: string;
|
|
682
682
|
guildId?: string;
|
|
683
683
|
inviter?: User;
|
|
684
684
|
maxAge: number;
|
|
@@ -752,7 +752,7 @@ export interface Activity {
|
|
|
752
752
|
name: string;
|
|
753
753
|
type: ActivityType;
|
|
754
754
|
url?: string | null;
|
|
755
|
-
createdAt:
|
|
755
|
+
createdAt: string;
|
|
756
756
|
timestamps?: ActivityTimestamps;
|
|
757
757
|
applicationId?: string;
|
|
758
758
|
details?: string | null;
|
package/dist/types/guild.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface RawGuild {
|
|
|
25
25
|
mfa_level: MFALevel;
|
|
26
26
|
application_id: string | null;
|
|
27
27
|
system_channel_id: string | null;
|
|
28
|
-
system_channel_flags:
|
|
28
|
+
system_channel_flags: SystemChannelFlags;
|
|
29
29
|
rules_channel_id: string | null;
|
|
30
30
|
max_presences?: number | null;
|
|
31
31
|
max_members?: number;
|
|
@@ -85,7 +85,7 @@ export interface RawGuildMember {
|
|
|
85
85
|
nick?: string | null;
|
|
86
86
|
avatar?: string | null;
|
|
87
87
|
roles: Array<string>;
|
|
88
|
-
joined_at:
|
|
88
|
+
joined_at: string;
|
|
89
89
|
premium_since?: number | null;
|
|
90
90
|
deaf: boolean;
|
|
91
91
|
mute: boolean;
|
|
@@ -107,7 +107,7 @@ export interface RawIntegration {
|
|
|
107
107
|
expire_grace_period?: number;
|
|
108
108
|
user?: RawUser;
|
|
109
109
|
account: RawIntegrationAccount;
|
|
110
|
-
synced_at?:
|
|
110
|
+
synced_at?: string;
|
|
111
111
|
subscriber_count?: number;
|
|
112
112
|
revoked?: boolean;
|
|
113
113
|
application?: RawIntegrationApplication;
|
|
@@ -252,7 +252,7 @@ export interface JSONGuildMember {
|
|
|
252
252
|
nick?: string | null;
|
|
253
253
|
avatar?: string | null;
|
|
254
254
|
roles: Array<string>;
|
|
255
|
-
joinedAt:
|
|
255
|
+
joinedAt: string;
|
|
256
256
|
premiumSince?: number | null;
|
|
257
257
|
deaf: boolean;
|
|
258
258
|
mute: boolean;
|
|
@@ -273,7 +273,7 @@ export interface JSONIntegration {
|
|
|
273
273
|
expireGracePeriod?: number;
|
|
274
274
|
user?: JSONUser;
|
|
275
275
|
account: JSONIntegrationAccount;
|
|
276
|
-
syncedAt?:
|
|
276
|
+
syncedAt?: string;
|
|
277
277
|
subscriberCount?: number;
|
|
278
278
|
revoked?: boolean;
|
|
279
279
|
application?: JSONIntegrationApplication;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, JSONAttachment, JSONUser, JSONGuildMember, JSONMessage, JSONRole, JSONChannel, JSONEntitlement, RawEntitlement } from ".";
|
|
2
|
-
import type { ApplicationCommandTypes, ComponentTypes, InteractionType } from "../constants";
|
|
1
|
+
import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, JSONAttachment, JSONUser, JSONGuildMember, JSONMessage, JSONRole, JSONChannel, JSONEntitlement, RawEntitlement, RawEmbed, RawAllowedMentions, RawActionRow, RawApplicationCommandOptionChoice, JSONEmbed, JSONAllowedMentions, JSONActionRow, JSONApplicationCommandOptionChoice, RawTextInput, JSONTextInput } from ".";
|
|
2
|
+
import type { ApplicationCommandOptionType, ApplicationCommandTypes, ComponentTypes, InteractionCallbackType, InteractionType, MessageFlags } from "../constants";
|
|
3
|
+
import type { File } from "../rest";
|
|
3
4
|
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure */
|
|
4
5
|
export interface RawInteraction {
|
|
5
6
|
id: string;
|
|
@@ -32,7 +33,7 @@ export interface RawApplicationCommandData {
|
|
|
32
33
|
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-message-component-data-structure */
|
|
33
34
|
export interface RawMessageComponentData {
|
|
34
35
|
custom_id: string;
|
|
35
|
-
component_type:
|
|
36
|
+
component_type: ComponentTypes;
|
|
36
37
|
values?: Array<string>;
|
|
37
38
|
resolved?: RawResolvedData;
|
|
38
39
|
}
|
|
@@ -41,32 +42,22 @@ export interface RawModalSubmitData {
|
|
|
41
42
|
custom_id: string;
|
|
42
43
|
components: Array<{
|
|
43
44
|
type: ComponentTypes.ActionRow;
|
|
44
|
-
components: Array<
|
|
45
|
-
type: ComponentTypes.TextInput;
|
|
46
|
-
custom_id: string;
|
|
47
|
-
style: number;
|
|
48
|
-
label: string;
|
|
49
|
-
min_length?: number;
|
|
50
|
-
max_length?: number;
|
|
51
|
-
required?: boolean;
|
|
52
|
-
value?: string;
|
|
53
|
-
placeholder?: string;
|
|
54
|
-
}>;
|
|
45
|
+
components: Array<RawTextInput>;
|
|
55
46
|
}>;
|
|
56
47
|
}
|
|
57
48
|
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure */
|
|
58
49
|
export interface RawResolvedData {
|
|
59
|
-
users?:
|
|
60
|
-
members?:
|
|
61
|
-
roles?:
|
|
62
|
-
channels?:
|
|
63
|
-
messages?:
|
|
64
|
-
attachments?:
|
|
50
|
+
users?: Record<string, RawUser>;
|
|
51
|
+
members?: Record<string, RawGuildMember>;
|
|
52
|
+
roles?: Record<string, RawRole>;
|
|
53
|
+
channels?: Record<string, RawChannel>;
|
|
54
|
+
messages?: Record<string, RawMessage>;
|
|
55
|
+
attachments?: Record<string, RawAttachment>;
|
|
65
56
|
}
|
|
66
57
|
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-application-command-interaction-data-option-structure */
|
|
67
58
|
export interface RawApplicationCommandInteractionDataOption {
|
|
68
59
|
name: string;
|
|
69
|
-
type:
|
|
60
|
+
type: ApplicationCommandOptionType;
|
|
70
61
|
value?: string | number | boolean;
|
|
71
62
|
options?: Array<RawApplicationCommandInteractionDataOption>;
|
|
72
63
|
focused?: boolean;
|
|
@@ -79,6 +70,25 @@ export interface RawMessageInteraction {
|
|
|
79
70
|
user: RawUser;
|
|
80
71
|
member?: RawGuildMember;
|
|
81
72
|
}
|
|
73
|
+
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-response-structure */
|
|
74
|
+
export interface RawInteractionResponse {
|
|
75
|
+
type: InteractionCallbackType;
|
|
76
|
+
data?: RawInteractionCallbackData;
|
|
77
|
+
}
|
|
78
|
+
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */
|
|
79
|
+
export interface RawInteractionCallbackData {
|
|
80
|
+
tts?: boolean;
|
|
81
|
+
content?: string;
|
|
82
|
+
embeds?: Array<RawEmbed>;
|
|
83
|
+
allowed_mentions?: RawAllowedMentions;
|
|
84
|
+
flags?: MessageFlags;
|
|
85
|
+
components?: Array<RawActionRow>;
|
|
86
|
+
attachments?: Array<RawAttachment>;
|
|
87
|
+
files?: Array<File>;
|
|
88
|
+
choices?: Array<RawApplicationCommandOptionChoice>;
|
|
89
|
+
custom_id?: string;
|
|
90
|
+
title?: string;
|
|
91
|
+
}
|
|
82
92
|
export interface JSONInteraction {
|
|
83
93
|
id: string;
|
|
84
94
|
applicationId: string;
|
|
@@ -108,7 +118,7 @@ export interface JSONApplicationCommandData {
|
|
|
108
118
|
}
|
|
109
119
|
export interface JSONMessageComponentData {
|
|
110
120
|
customId: string;
|
|
111
|
-
componentType:
|
|
121
|
+
componentType: ComponentTypes;
|
|
112
122
|
values?: Array<string>;
|
|
113
123
|
resolved?: JSONResolvedData;
|
|
114
124
|
}
|
|
@@ -116,30 +126,20 @@ export interface JSONModalSubmitData {
|
|
|
116
126
|
customId: string;
|
|
117
127
|
components: Array<{
|
|
118
128
|
type: ComponentTypes.ActionRow;
|
|
119
|
-
components: Array<
|
|
120
|
-
type: ComponentTypes.TextInput;
|
|
121
|
-
customId: string;
|
|
122
|
-
style: number;
|
|
123
|
-
label: string;
|
|
124
|
-
minLength?: number;
|
|
125
|
-
maxLength?: number;
|
|
126
|
-
required?: boolean;
|
|
127
|
-
value?: string;
|
|
128
|
-
placeholder?: string;
|
|
129
|
-
}>;
|
|
129
|
+
components: Array<JSONTextInput>;
|
|
130
130
|
}>;
|
|
131
131
|
}
|
|
132
132
|
export interface JSONResolvedData {
|
|
133
|
-
users?:
|
|
134
|
-
members?:
|
|
135
|
-
roles?:
|
|
136
|
-
channels?:
|
|
137
|
-
messages?:
|
|
138
|
-
attachments?:
|
|
133
|
+
users?: Map<string, JSONUser>;
|
|
134
|
+
members?: Map<string, JSONGuildMember>;
|
|
135
|
+
roles?: Map<string, JSONRole>;
|
|
136
|
+
channels?: Map<string, JSONChannel>;
|
|
137
|
+
messages?: Map<string, JSONMessage>;
|
|
138
|
+
attachments?: Map<string, JSONAttachment>;
|
|
139
139
|
}
|
|
140
140
|
export interface JSONApplicationCommandInteractionDataOption {
|
|
141
141
|
name: string;
|
|
142
|
-
type:
|
|
142
|
+
type: ApplicationCommandOptionType;
|
|
143
143
|
value?: string | number | boolean;
|
|
144
144
|
options?: Array<JSONApplicationCommandInteractionDataOption>;
|
|
145
145
|
focused?: boolean;
|
|
@@ -151,3 +151,20 @@ export interface JSONMessageInteraction {
|
|
|
151
151
|
user: JSONUser;
|
|
152
152
|
member?: JSONGuildMember;
|
|
153
153
|
}
|
|
154
|
+
export interface JSONInteractionResponse {
|
|
155
|
+
type: InteractionCallbackType;
|
|
156
|
+
data?: JSONInteractionCallbackData;
|
|
157
|
+
}
|
|
158
|
+
export interface JSONInteractionCallbackData {
|
|
159
|
+
tts?: boolean;
|
|
160
|
+
content?: string;
|
|
161
|
+
embeds?: Array<JSONEmbed>;
|
|
162
|
+
allowedMentions?: JSONAllowedMentions;
|
|
163
|
+
flags?: MessageFlags;
|
|
164
|
+
components?: Array<JSONActionRow>;
|
|
165
|
+
attachments?: Array<JSONAttachment>;
|
|
166
|
+
files?: Array<File>;
|
|
167
|
+
choices?: Array<JSONApplicationCommandOptionChoice>;
|
|
168
|
+
customId?: string;
|
|
169
|
+
title?: string;
|
|
170
|
+
}
|
package/dist/types/invite.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { JSONApplication, JSONChannel, JSONGuild, JSONGuildMember, JSONGuildScheduledEvent, JSONUser, RawApplication, RawChannel, RawGuild, RawGuildMember, RawGuildScheduledEvent, RawUser } from ".";
|
|
2
|
+
import type { InviteTargetTypes } from "../constants";
|
|
2
3
|
/** https://discord.com/developers/docs/resources/invite#invite-object-invite-structure */
|
|
3
4
|
export interface RawInvite {
|
|
4
5
|
code: string;
|
|
5
6
|
guild?: RawGuild;
|
|
6
7
|
channel: RawChannel;
|
|
7
8
|
inviter?: RawUser;
|
|
8
|
-
target_type?:
|
|
9
|
+
target_type?: InviteTargetTypes;
|
|
9
10
|
target_user?: RawUser;
|
|
10
11
|
target_application?: RawApplication;
|
|
11
12
|
approximate_presence_count?: number;
|
|
@@ -34,7 +35,7 @@ export interface JSONInvite {
|
|
|
34
35
|
guild?: JSONGuild;
|
|
35
36
|
channel: JSONChannel;
|
|
36
37
|
inviter?: JSONUser;
|
|
37
|
-
targetType?:
|
|
38
|
+
targetType?: InviteTargetTypes;
|
|
38
39
|
targetUser?: JSONUser;
|
|
39
40
|
targetApplication?: JSONApplication;
|
|
40
41
|
approximatePresenceCount?: number;
|
|
@@ -5,7 +5,7 @@ export interface RawButton {
|
|
|
5
5
|
type: ComponentTypes.Button;
|
|
6
6
|
style: ButtonStyles;
|
|
7
7
|
label?: string;
|
|
8
|
-
emoji?:
|
|
8
|
+
emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
|
|
9
9
|
custom_id?: string;
|
|
10
10
|
url?: string;
|
|
11
11
|
disabled?: boolean;
|
|
@@ -27,7 +27,7 @@ export interface RawSelectOption {
|
|
|
27
27
|
label: string;
|
|
28
28
|
value: string;
|
|
29
29
|
description?: string;
|
|
30
|
-
emoji?:
|
|
30
|
+
emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
|
|
31
31
|
default?: boolean;
|
|
32
32
|
}
|
|
33
33
|
/** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure */
|
|
@@ -56,7 +56,7 @@ export interface JSONButton {
|
|
|
56
56
|
type: ComponentTypes.Button;
|
|
57
57
|
style: ButtonStyles;
|
|
58
58
|
label?: string;
|
|
59
|
-
emoji?:
|
|
59
|
+
emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
|
|
60
60
|
customId?: string;
|
|
61
61
|
url?: string;
|
|
62
62
|
disabled?: boolean;
|
|
@@ -76,7 +76,7 @@ export interface JSONSelectOption {
|
|
|
76
76
|
label: string;
|
|
77
77
|
value: string;
|
|
78
78
|
description?: string;
|
|
79
|
-
emoji?:
|
|
79
|
+
emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
|
|
80
80
|
default?: boolean;
|
|
81
81
|
}
|
|
82
82
|
export interface JSONDefaultValue {
|
package/dist/types/sku.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { PrivacyLevel } from "../constants";
|
|
1
2
|
/** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-stage-instance-structure */
|
|
2
3
|
export interface RawStageInstance {
|
|
3
4
|
id: string;
|
|
4
5
|
guild_id: string;
|
|
5
6
|
channel_id: string;
|
|
6
7
|
topic: string;
|
|
7
|
-
privacy_level:
|
|
8
|
+
privacy_level: PrivacyLevel;
|
|
8
9
|
discoverable_disabled: boolean;
|
|
9
10
|
guild_scheduled_event_id: string | null;
|
|
10
11
|
}
|
|
@@ -13,7 +14,7 @@ export interface JSONStageInstance {
|
|
|
13
14
|
guildId: string;
|
|
14
15
|
channelId: string;
|
|
15
16
|
topic: string;
|
|
16
|
-
privacyLevel:
|
|
17
|
+
privacyLevel: PrivacyLevel;
|
|
17
18
|
discoverableDisabled: boolean;
|
|
18
19
|
guildScheduledEventId: string | null;
|
|
19
20
|
}
|
package/dist/types/team.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSONUser, RawUser } from ".";
|
|
2
|
-
import { TeamMemberRoleTypes } from "../constants";
|
|
2
|
+
import type { TeamMemberRoleTypes } from "../constants";
|
|
3
3
|
/** https://discord.com/developers/docs/topics/teams#data-models-team-object */
|
|
4
4
|
export interface RawTeam {
|
|
5
5
|
icon: string | null;
|
package/dist/types/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UserFlags, Services, VisibilityTypes } from "../constants";
|
|
1
|
+
import type { UserFlags, Services, VisibilityTypes, PremiumTypes } from "../constants";
|
|
2
2
|
import type { JSONApplicationRoleConnectionMetadata, JSONIntegration, RawApplicationRoleConnectionMetadata, RawIntegration } from ".";
|
|
3
3
|
/** https://discord.com/developers/docs/resources/user#user-object-user-structure */
|
|
4
4
|
export interface RawUser {
|
|
@@ -16,7 +16,7 @@ export interface RawUser {
|
|
|
16
16
|
verified?: boolean;
|
|
17
17
|
email?: string;
|
|
18
18
|
flags?: UserFlags;
|
|
19
|
-
premium_type?:
|
|
19
|
+
premium_type?: PremiumTypes;
|
|
20
20
|
public_flags?: UserFlags;
|
|
21
21
|
avatar_decoration?: string | null;
|
|
22
22
|
}
|
|
@@ -54,7 +54,7 @@ export interface JSONUser {
|
|
|
54
54
|
verified?: boolean;
|
|
55
55
|
email?: string;
|
|
56
56
|
flags?: UserFlags;
|
|
57
|
-
premiumType?:
|
|
57
|
+
premiumType?: PremiumTypes;
|
|
58
58
|
publicFlags?: UserFlags;
|
|
59
59
|
avatarDecoration?: string | null;
|
|
60
60
|
}
|