disgroove 3.0.1-dev.59674f9 → 3.0.1-dev.6d98962
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/constants.d.ts +18 -2
- package/dist/lib/constants.js +23 -4
- package/dist/lib/transformers/Components.d.ts +1 -1
- package/dist/lib/transformers/Components.js +8 -0
- package/dist/lib/transformers/Messages.d.ts +1 -1
- package/dist/lib/transformers/Messages.js +62 -20
- package/dist/lib/types/application.d.ts +2 -2
- package/dist/lib/types/components.d.ts +7 -1
- package/dist/lib/types/message.d.ts +29 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/constants.d.ts
CHANGED
|
@@ -162,6 +162,10 @@ export declare enum SeparatorSpacing {
|
|
|
162
162
|
Small = 1,
|
|
163
163
|
Large = 2
|
|
164
164
|
}
|
|
165
|
+
/** https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags */
|
|
166
|
+
export declare enum UnfurledMediaItemFlags {
|
|
167
|
+
IsAnimated = 1
|
|
168
|
+
}
|
|
165
169
|
/** https://discord.com/developers/docs/resources/application#application-object-application-integration-types */
|
|
166
170
|
export declare enum ApplicationIntegrationTypes {
|
|
167
171
|
GuildInstall = 0,
|
|
@@ -614,9 +618,21 @@ export declare enum EmbedTypes {
|
|
|
614
618
|
Link = "link",
|
|
615
619
|
PollResult = "poll_result"
|
|
616
620
|
}
|
|
621
|
+
/** https://docs.discord.com/developers/resources/message#embed-object-embed-flags */
|
|
622
|
+
export declare enum EmbedFlags {
|
|
623
|
+
IsContentInventoryEntry = 32
|
|
624
|
+
}
|
|
625
|
+
/** https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags */
|
|
626
|
+
export declare enum EmbedMediaFlags {
|
|
627
|
+
IsAnimated = 32
|
|
628
|
+
}
|
|
617
629
|
/** https://discord.com/developers/docs/resources/message#attachment-object-attachment-flags */
|
|
618
630
|
export declare enum AttachmentFlags {
|
|
619
|
-
|
|
631
|
+
IsClip = 1,
|
|
632
|
+
IsThumbnail = 2,
|
|
633
|
+
IsRemix = 4,
|
|
634
|
+
IsSpoiler = 8,
|
|
635
|
+
IsAnimated = 32
|
|
620
636
|
}
|
|
621
637
|
/** https://discord.com/developers/docs/resources/message#allowed-mentions-object-allowed-mention-types */
|
|
622
638
|
export declare enum AllowedMentionTypes {
|
|
@@ -1206,7 +1222,7 @@ export declare enum JSONErrorCodes {
|
|
|
1206
1222
|
YouCannotSendVoiceMessagesInThisChannel = 50173,
|
|
1207
1223
|
TheUserAccountMustFirstBeVerified = 50178,
|
|
1208
1224
|
TheProvidedFileDoesNotHaveAValidDuration = 50192,
|
|
1209
|
-
|
|
1225
|
+
CannotSendMessagesToThisUserDueToHavingNoMutualGuilds = 50278,
|
|
1210
1226
|
YouDoNotHavePermissionToSendThisSticker = 50600,
|
|
1211
1227
|
TwoFactorAuthenticationIsRequired = 60003,
|
|
1212
1228
|
NoUsersWithDiscordTagExist = 80004,
|
package/dist/lib/constants.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.EntitlementTypes = void 0;
|
|
3
|
+
exports.GuildScheduledEventRecurrenceRuleWeekday = exports.GuildScheduledEventRecurrenceRuleFrequency = exports.GuildScheduledEventStatus = exports.GuildScheduledEventEntityTypes = exports.GuildScheduledEventPrivacyLevel = exports.ImageWidgetStyleOptions = exports.PromptTypes = exports.OnboardingMode = exports.IntegrationExpireBehaviors = exports.GuildMemberFlags = exports.MutableGuildFeatures = exports.GuildFeatures = exports.SystemChannelFlags = exports.PremiumTier = exports.GuildNSFWLevel = exports.VerificationLevel = exports.MFALevel = exports.ExplicitContentFilterLevel = exports.DefaultMessageNotificationLevel = exports.ForumLayoutTypes = exports.SortOrderTypes = exports.ChannelFlags = exports.VideoQualityModes = exports.ChannelTypes = exports.ActionTypes = exports.EventTypes = exports.KeywordPresetTypes = exports.TriggerTypes = exports.AuditLogEvents = exports.ApplicationRoleConnectionMetadataType = exports.ActivityLocationKind = exports.ApplicationFlags = exports.ApplicationEventWebhookStatus = exports.ApplicationIntegrationTypes = exports.UnfurledMediaItemFlags = exports.SeparatorSpacing = exports.TextInputStyles = exports.ButtonStyles = exports.ComponentTypes = exports.InteractionCallbackType = exports.InteractionContextTypes = exports.InteractionType = exports.ApplicationCommandPermissionType = exports.EntryPointCommandHandlerTypes = exports.ApplicationCommandOptionType = exports.ApplicationCommandTypes = exports.Locales = exports.ImageFormats = exports.GuildNavigationTypes = exports.TimestampStyles = void 0;
|
|
4
|
+
exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.AnimationTypes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.SubscriptionStatuses = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = exports.LayoutType = exports.ReactionTypes = exports.SearchSortModes = exports.SearchEmbedTypes = exports.SearchHasTypes = exports.AuthorTypes = exports.BaseThemeTypes = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.EmbedMediaFlags = exports.EmbedFlags = exports.EmbedTypes = exports.MessageReferenceTypes = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = exports.LobbyMemberFlags = exports.InviteTargetUsersJobStatusErrorCodes = exports.GuildInviteFlags = exports.InviteTargetTypes = exports.InviteTypes = exports.GuildScheduledEventRecurrenceRuleMonth = void 0;
|
|
5
|
+
exports.EntitlementTypes = exports.SKUFlags = exports.SKUTypes = exports.MembershipState = void 0;
|
|
6
6
|
/** https://discord.com/developers/docs/reference#message-formatting-timestamp-styles */
|
|
7
7
|
var TimestampStyles;
|
|
8
8
|
(function (TimestampStyles) {
|
|
@@ -182,6 +182,11 @@ var SeparatorSpacing;
|
|
|
182
182
|
SeparatorSpacing[SeparatorSpacing["Small"] = 1] = "Small";
|
|
183
183
|
SeparatorSpacing[SeparatorSpacing["Large"] = 2] = "Large";
|
|
184
184
|
})(SeparatorSpacing || (exports.SeparatorSpacing = SeparatorSpacing = {}));
|
|
185
|
+
/** https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags */
|
|
186
|
+
var UnfurledMediaItemFlags;
|
|
187
|
+
(function (UnfurledMediaItemFlags) {
|
|
188
|
+
UnfurledMediaItemFlags[UnfurledMediaItemFlags["IsAnimated"] = 1] = "IsAnimated";
|
|
189
|
+
})(UnfurledMediaItemFlags || (exports.UnfurledMediaItemFlags = UnfurledMediaItemFlags = {}));
|
|
185
190
|
/** https://discord.com/developers/docs/resources/application#application-object-application-integration-types */
|
|
186
191
|
var ApplicationIntegrationTypes;
|
|
187
192
|
(function (ApplicationIntegrationTypes) {
|
|
@@ -679,10 +684,24 @@ var EmbedTypes;
|
|
|
679
684
|
EmbedTypes["Link"] = "link";
|
|
680
685
|
EmbedTypes["PollResult"] = "poll_result";
|
|
681
686
|
})(EmbedTypes || (exports.EmbedTypes = EmbedTypes = {}));
|
|
687
|
+
/** https://docs.discord.com/developers/resources/message#embed-object-embed-flags */
|
|
688
|
+
var EmbedFlags;
|
|
689
|
+
(function (EmbedFlags) {
|
|
690
|
+
EmbedFlags[EmbedFlags["IsContentInventoryEntry"] = 32] = "IsContentInventoryEntry";
|
|
691
|
+
})(EmbedFlags || (exports.EmbedFlags = EmbedFlags = {}));
|
|
692
|
+
/** https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags */
|
|
693
|
+
var EmbedMediaFlags;
|
|
694
|
+
(function (EmbedMediaFlags) {
|
|
695
|
+
EmbedMediaFlags[EmbedMediaFlags["IsAnimated"] = 32] = "IsAnimated";
|
|
696
|
+
})(EmbedMediaFlags || (exports.EmbedMediaFlags = EmbedMediaFlags = {}));
|
|
682
697
|
/** https://discord.com/developers/docs/resources/message#attachment-object-attachment-flags */
|
|
683
698
|
var AttachmentFlags;
|
|
684
699
|
(function (AttachmentFlags) {
|
|
700
|
+
AttachmentFlags[AttachmentFlags["IsClip"] = 1] = "IsClip";
|
|
701
|
+
AttachmentFlags[AttachmentFlags["IsThumbnail"] = 2] = "IsThumbnail";
|
|
685
702
|
AttachmentFlags[AttachmentFlags["IsRemix"] = 4] = "IsRemix";
|
|
703
|
+
AttachmentFlags[AttachmentFlags["IsSpoiler"] = 8] = "IsSpoiler";
|
|
704
|
+
AttachmentFlags[AttachmentFlags["IsAnimated"] = 32] = "IsAnimated";
|
|
686
705
|
})(AttachmentFlags || (exports.AttachmentFlags = AttachmentFlags = {}));
|
|
687
706
|
/** https://discord.com/developers/docs/resources/message#allowed-mentions-object-allowed-mention-types */
|
|
688
707
|
var AllowedMentionTypes;
|
|
@@ -1303,7 +1322,7 @@ var JSONErrorCodes;
|
|
|
1303
1322
|
JSONErrorCodes[JSONErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
|
|
1304
1323
|
JSONErrorCodes[JSONErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
|
|
1305
1324
|
JSONErrorCodes[JSONErrorCodes["TheProvidedFileDoesNotHaveAValidDuration"] = 50192] = "TheProvidedFileDoesNotHaveAValidDuration";
|
|
1306
|
-
JSONErrorCodes[JSONErrorCodes["
|
|
1325
|
+
JSONErrorCodes[JSONErrorCodes["CannotSendMessagesToThisUserDueToHavingNoMutualGuilds"] = 50278] = "CannotSendMessagesToThisUserDueToHavingNoMutualGuilds";
|
|
1307
1326
|
JSONErrorCodes[JSONErrorCodes["YouDoNotHavePermissionToSendThisSticker"] = 50600] = "YouDoNotHavePermissionToSendThisSticker";
|
|
1308
1327
|
JSONErrorCodes[JSONErrorCodes["TwoFactorAuthenticationIsRequired"] = 60003] = "TwoFactorAuthenticationIsRequired";
|
|
1309
1328
|
JSONErrorCodes[JSONErrorCodes["NoUsersWithDiscordTagExist"] = 80004] = "NoUsersWithDiscordTagExist";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionRow, Button, Container, RawActionRow, RawButton, RawContainer, RawFile, File, RawUnfurledMediaItem, UnfurledMediaItem, RawTextDisplay, TextDisplay, RawSeparator, Separator, RawSection, Section, Thumbnail, RawThumbnail, TextInput, RawTextInput, MediaGallery, RawMediaGallery, RawStringSelect, StringSelect, RawUserSelect, UserSelect, RawRoleSelect, RoleSelect, RawMentionableSelect, MentionableSelect, RawChannelSelect, ChannelSelect, RawLabel, Label, RawFileUpload, FileUpload, RawRadioGroup, RadioGroup, RawCheckbox, Checkbox, RawCheckboxGroup, CheckboxGroup } from "../types/components";
|
|
1
|
+
import type { ActionRow, Button, Container, RawActionRow, RawButton, RawContainer, RawFile, File, RawUnfurledMediaItem, UnfurledMediaItem, RawTextDisplay, TextDisplay, RawSeparator, Separator, RawSection, Section, Thumbnail, RawThumbnail, TextInput, RawTextInput, MediaGallery, RawMediaGallery, RawStringSelect, StringSelect, RawUserSelect, UserSelect, RawRoleSelect, RoleSelect, RawMentionableSelect, MentionableSelect, RawChannelSelect, ChannelSelect, RawLabel, Label, RawFileUpload, FileUpload, RawRadioGroup, RadioGroup, RawCheckbox, Checkbox, RawCheckboxGroup, CheckboxGroup } from "../types/components";
|
|
2
2
|
export declare class Components {
|
|
3
3
|
static actionRowFromRaw(actionRow: RawActionRow): ActionRow;
|
|
4
4
|
static actionRowToRaw(actionRow: ActionRow): RawActionRow;
|
|
@@ -584,7 +584,11 @@ class Components {
|
|
|
584
584
|
proxyURL: unfurledMediaItem.proxy_url,
|
|
585
585
|
height: unfurledMediaItem.height,
|
|
586
586
|
width: unfurledMediaItem.width,
|
|
587
|
+
placeholder: unfurledMediaItem.placeholder,
|
|
588
|
+
placeholderVersion: unfurledMediaItem.placeholder_version,
|
|
587
589
|
contentType: unfurledMediaItem.content_type,
|
|
590
|
+
flags: unfurledMediaItem.flags,
|
|
591
|
+
attachmentId: unfurledMediaItem.attachment_id,
|
|
588
592
|
};
|
|
589
593
|
}
|
|
590
594
|
static unfurledMediaItemToRaw(unfurledMediaItem) {
|
|
@@ -593,7 +597,11 @@ class Components {
|
|
|
593
597
|
proxy_url: unfurledMediaItem.proxyURL,
|
|
594
598
|
height: unfurledMediaItem.height,
|
|
595
599
|
width: unfurledMediaItem.width,
|
|
600
|
+
placeholder: unfurledMediaItem.placeholder,
|
|
601
|
+
placeholder_version: unfurledMediaItem.placeholderVersion,
|
|
596
602
|
content_type: unfurledMediaItem.contentType,
|
|
603
|
+
flags: unfurledMediaItem.flags,
|
|
604
|
+
attachment_id: unfurledMediaItem.attachmentId,
|
|
597
605
|
};
|
|
598
606
|
}
|
|
599
607
|
static userSelectFromRaw(userSelect) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RawAttachment, Attachment, RawEmbed, Embed, RawMessage, Message } from "../types/message";
|
|
1
|
+
import type { RawAttachment, Attachment, RawEmbed, Embed, RawMessage, Message } from "../types/message";
|
|
2
2
|
import type { ActionRow, Container, File, MediaGallery, RawActionRow, RawContainer, RawFile, RawMediaGallery, RawSection, RawSeparator, RawTextDisplay, Section, Separator, TextDisplay } from "../types/components";
|
|
3
3
|
export declare class Messages {
|
|
4
4
|
static attachmentFromRaw(attachment: RawAttachment): Attachment;
|
|
@@ -28,6 +28,13 @@ class Messages {
|
|
|
28
28
|
durationSecs: attachment.duration_secs,
|
|
29
29
|
waveform: attachment.waveform,
|
|
30
30
|
flags: attachment.flags,
|
|
31
|
+
clipParticipants: attachment.clip_participants?.map((user) => Users_1.Users.userFromRaw(user)),
|
|
32
|
+
clipCreatedAt: attachment.clip_created_at,
|
|
33
|
+
application: attachment.application !== undefined
|
|
34
|
+
? attachment.application !== null
|
|
35
|
+
? Applications_1.Applications.applicationFromRaw(attachment.application)
|
|
36
|
+
: null
|
|
37
|
+
: undefined,
|
|
31
38
|
};
|
|
32
39
|
}
|
|
33
40
|
static attachmentToRaw(attachment) {
|
|
@@ -46,6 +53,13 @@ class Messages {
|
|
|
46
53
|
duration_secs: attachment.durationSecs,
|
|
47
54
|
waveform: attachment.waveform,
|
|
48
55
|
flags: attachment.flags,
|
|
56
|
+
clip_participants: attachment.clipParticipants?.map((user) => Users_1.Users.userToRaw(user)),
|
|
57
|
+
clip_created_at: attachment.clipCreatedAt,
|
|
58
|
+
application: attachment.application !== undefined
|
|
59
|
+
? attachment.application !== null
|
|
60
|
+
? Applications_1.Applications.applicationToRaw(attachment.application)
|
|
61
|
+
: null
|
|
62
|
+
: undefined,
|
|
49
63
|
};
|
|
50
64
|
}
|
|
51
65
|
static componentsFromRaw(components) {
|
|
@@ -109,6 +123,11 @@ class Messages {
|
|
|
109
123
|
proxyURL: embed.image.proxy_url,
|
|
110
124
|
height: embed.image.height,
|
|
111
125
|
width: embed.image.width,
|
|
126
|
+
contentType: embed.image.content_type,
|
|
127
|
+
placeholder: embed.image.placeholder,
|
|
128
|
+
placeholderVersion: embed.image.placeholder_version,
|
|
129
|
+
description: embed.image.description,
|
|
130
|
+
flags: embed.image.flags,
|
|
112
131
|
}
|
|
113
132
|
: undefined,
|
|
114
133
|
thumbnail: embed.thumbnail !== undefined
|
|
@@ -119,16 +138,25 @@ class Messages {
|
|
|
119
138
|
width: embed.thumbnail.width,
|
|
120
139
|
}
|
|
121
140
|
: undefined,
|
|
122
|
-
video:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
141
|
+
video: embed.video !== undefined
|
|
142
|
+
? {
|
|
143
|
+
url: embed.video.url,
|
|
144
|
+
proxyURL: embed.video.proxy_url,
|
|
145
|
+
height: embed.video.height,
|
|
146
|
+
width: embed.video.width,
|
|
147
|
+
contentType: embed.video.content_type,
|
|
148
|
+
placeholder: embed.video.placeholder,
|
|
149
|
+
placeholderVersion: embed.video.placeholder_version,
|
|
150
|
+
description: embed.video.description,
|
|
151
|
+
flags: embed.video.flags,
|
|
152
|
+
}
|
|
153
|
+
: undefined,
|
|
154
|
+
provider: embed.provider !== undefined
|
|
155
|
+
? {
|
|
156
|
+
name: embed.provider.name,
|
|
157
|
+
url: embed.provider.url,
|
|
158
|
+
}
|
|
159
|
+
: undefined,
|
|
132
160
|
author: embed.author !== undefined
|
|
133
161
|
? {
|
|
134
162
|
name: embed.author.name,
|
|
@@ -161,6 +189,11 @@ class Messages {
|
|
|
161
189
|
proxy_url: embed.image.proxyURL,
|
|
162
190
|
height: embed.image.height,
|
|
163
191
|
width: embed.image.width,
|
|
192
|
+
content_type: embed.image.contentType,
|
|
193
|
+
placeholder: embed.image.placeholder,
|
|
194
|
+
placeholder_version: embed.image.placeholderVersion,
|
|
195
|
+
description: embed.image.description,
|
|
196
|
+
flags: embed.image.flags,
|
|
164
197
|
}
|
|
165
198
|
: undefined,
|
|
166
199
|
thumbnail: embed.thumbnail !== undefined
|
|
@@ -171,16 +204,25 @@ class Messages {
|
|
|
171
204
|
width: embed.thumbnail.width,
|
|
172
205
|
}
|
|
173
206
|
: undefined,
|
|
174
|
-
video:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
207
|
+
video: embed.video !== undefined
|
|
208
|
+
? {
|
|
209
|
+
url: embed.video.url,
|
|
210
|
+
proxy_url: embed.video.proxyURL,
|
|
211
|
+
height: embed.video.height,
|
|
212
|
+
width: embed.video.width,
|
|
213
|
+
content_type: embed.video.contentType,
|
|
214
|
+
placeholder: embed.video.placeholder,
|
|
215
|
+
placeholder_version: embed.video.placeholderVersion,
|
|
216
|
+
description: embed.video.description,
|
|
217
|
+
flags: embed.video.flags,
|
|
218
|
+
}
|
|
219
|
+
: undefined,
|
|
220
|
+
provider: embed.provider !== undefined
|
|
221
|
+
? {
|
|
222
|
+
name: embed.provider.name,
|
|
223
|
+
url: embed.provider.url,
|
|
224
|
+
}
|
|
225
|
+
: undefined,
|
|
184
226
|
author: embed.author !== undefined
|
|
185
227
|
? {
|
|
186
228
|
name: embed.author.name,
|
|
@@ -30,7 +30,7 @@ export interface RawApplication {
|
|
|
30
30
|
interactions_endpoint_url?: string;
|
|
31
31
|
role_connections_verification_url?: string;
|
|
32
32
|
event_webhooks_url?: string | null;
|
|
33
|
-
event_webhooks_status
|
|
33
|
+
event_webhooks_status?: ApplicationEventWebhookStatus;
|
|
34
34
|
event_webhooks_types?: Array<string>;
|
|
35
35
|
tags?: Array<string>;
|
|
36
36
|
install_params?: RawInstallParams;
|
|
@@ -88,7 +88,7 @@ export interface Application {
|
|
|
88
88
|
interactionsEndpointURL?: string;
|
|
89
89
|
roleConnectionsVerificationURL?: string;
|
|
90
90
|
eventWebhooksURL?: string | null;
|
|
91
|
-
eventWebhooksStatus
|
|
91
|
+
eventWebhooksStatus?: ApplicationEventWebhookStatus;
|
|
92
92
|
eventWebhooksTypes?: Array<string>;
|
|
93
93
|
tags?: Array<string>;
|
|
94
94
|
installParams?: InstallParams;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonStyles, ChannelTypes, ComponentTypes, SeparatorSpacing, TextInputStyles } from "../constants";
|
|
1
|
+
import type { ButtonStyles, ChannelTypes, ComponentTypes, SeparatorSpacing, TextInputStyles, UnfurledMediaItemFlags } from "../constants";
|
|
2
2
|
import type { snowflake } from "./common";
|
|
3
3
|
import type { RawEmoji, Emoji } from "./emoji";
|
|
4
4
|
import type { RawResolvedData, ResolvedData } from "./interaction";
|
|
@@ -252,7 +252,10 @@ export interface RawUnfurledMediaItem {
|
|
|
252
252
|
proxy_url?: string;
|
|
253
253
|
height?: number | null;
|
|
254
254
|
width?: number | null;
|
|
255
|
+
placeholder?: string;
|
|
256
|
+
placeholder_version?: number;
|
|
255
257
|
content_type?: string;
|
|
258
|
+
flags?: UnfurledMediaItemFlags;
|
|
256
259
|
attachment_id?: snowflake;
|
|
257
260
|
}
|
|
258
261
|
/** https://docs.discord.com/developers/components/reference#radio-group-structure */
|
|
@@ -565,7 +568,10 @@ export interface UnfurledMediaItem {
|
|
|
565
568
|
proxyURL?: string;
|
|
566
569
|
height?: number | null;
|
|
567
570
|
width?: number | null;
|
|
571
|
+
placeholder?: string;
|
|
572
|
+
placeholderVersion?: number;
|
|
568
573
|
contentType?: string;
|
|
574
|
+
flags?: UnfurledMediaItemFlags;
|
|
569
575
|
attachmentId?: snowflake;
|
|
570
576
|
}
|
|
571
577
|
/** https://docs.discord.com/developers/components/reference#radio-group-structure */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageTypes, MessageFlags, MessageActivityTypes, InteractionType, ApplicationIntegrationTypes, MessageReferenceTypes, AttachmentFlags, ChannelTypes, AllowedMentionTypes, EmbedTypes, BaseThemeTypes } from "../constants";
|
|
1
|
+
import type { MessageTypes, MessageFlags, MessageActivityTypes, InteractionType, ApplicationIntegrationTypes, MessageReferenceTypes, AttachmentFlags, ChannelTypes, AllowedMentionTypes, EmbedTypes, BaseThemeTypes, EmbedFlags, EmbedMediaFlags } from "../constants";
|
|
2
2
|
import type { Application, RawApplication } from "./application";
|
|
3
3
|
import type { Channel, RawChannel } from "./channel";
|
|
4
4
|
import type { snowflake, timestamp } from "./common";
|
|
@@ -109,6 +109,7 @@ export interface RawEmbed {
|
|
|
109
109
|
provider?: RawEmbedProvider;
|
|
110
110
|
author?: RawEmbedAuthor;
|
|
111
111
|
fields?: Array<RawEmbedField>;
|
|
112
|
+
flags?: EmbedFlags;
|
|
112
113
|
}
|
|
113
114
|
/** https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure */
|
|
114
115
|
export interface RawEmbedThumbnail {
|
|
@@ -123,6 +124,11 @@ export interface RawEmbedVideo {
|
|
|
123
124
|
proxy_url?: string;
|
|
124
125
|
height?: number;
|
|
125
126
|
width?: number;
|
|
127
|
+
content_type?: string;
|
|
128
|
+
placeholder?: string;
|
|
129
|
+
placeholder_version?: number;
|
|
130
|
+
description?: string;
|
|
131
|
+
flags?: EmbedMediaFlags;
|
|
126
132
|
}
|
|
127
133
|
/** https://discord.com/developers/docs/resources/message#embed-object-embed-image-structure */
|
|
128
134
|
export interface RawEmbedImage {
|
|
@@ -130,6 +136,11 @@ export interface RawEmbedImage {
|
|
|
130
136
|
proxy_url?: string;
|
|
131
137
|
height?: number;
|
|
132
138
|
width?: number;
|
|
139
|
+
content_type?: string;
|
|
140
|
+
placeholder?: string;
|
|
141
|
+
placeholder_version?: number;
|
|
142
|
+
description?: string;
|
|
143
|
+
flags?: EmbedMediaFlags;
|
|
133
144
|
}
|
|
134
145
|
/** https://discord.com/developers/docs/resources/message#embed-object-embed-provider-structure */
|
|
135
146
|
export interface RawEmbedProvider {
|
|
@@ -182,6 +193,9 @@ export interface RawAttachment {
|
|
|
182
193
|
duration_secs?: number;
|
|
183
194
|
waveform?: boolean;
|
|
184
195
|
flags?: AttachmentFlags;
|
|
196
|
+
clip_participants?: Array<RawUser>;
|
|
197
|
+
clip_created_at?: timestamp;
|
|
198
|
+
application?: RawApplication | null;
|
|
185
199
|
}
|
|
186
200
|
/** https://discord.com/developers/docs/resources/message#channel-mention-object-channel-mention-structure */
|
|
187
201
|
export interface RawChannelMention {
|
|
@@ -317,6 +331,7 @@ export interface Embed {
|
|
|
317
331
|
provider?: EmbedProvider;
|
|
318
332
|
author?: EmbedAuthor;
|
|
319
333
|
fields?: Array<EmbedField>;
|
|
334
|
+
flags?: EmbedFlags;
|
|
320
335
|
}
|
|
321
336
|
/** https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure */
|
|
322
337
|
export interface EmbedThumbnail {
|
|
@@ -331,6 +346,11 @@ export interface EmbedVideo {
|
|
|
331
346
|
proxyURL?: string;
|
|
332
347
|
height?: number;
|
|
333
348
|
width?: number;
|
|
349
|
+
contentType?: string;
|
|
350
|
+
placeholder?: string;
|
|
351
|
+
placeholderVersion?: number;
|
|
352
|
+
description?: string;
|
|
353
|
+
flags?: EmbedMediaFlags;
|
|
334
354
|
}
|
|
335
355
|
/** https://discord.com/developers/docs/resources/message#embed-object-embed-image-structure */
|
|
336
356
|
export interface EmbedImage {
|
|
@@ -338,6 +358,11 @@ export interface EmbedImage {
|
|
|
338
358
|
proxyURL?: string;
|
|
339
359
|
height?: number;
|
|
340
360
|
width?: number;
|
|
361
|
+
contentType?: string;
|
|
362
|
+
placeholder?: string;
|
|
363
|
+
placeholderVersion?: number;
|
|
364
|
+
description?: string;
|
|
365
|
+
flags?: EmbedMediaFlags;
|
|
341
366
|
}
|
|
342
367
|
/** https://discord.com/developers/docs/resources/message#embed-object-embed-provider-structure */
|
|
343
368
|
export interface EmbedProvider {
|
|
@@ -390,6 +415,9 @@ export interface Attachment {
|
|
|
390
415
|
durationSecs?: number;
|
|
391
416
|
waveform?: boolean;
|
|
392
417
|
flags?: AttachmentFlags;
|
|
418
|
+
clipParticipants?: Array<User>;
|
|
419
|
+
clipCreatedAt?: timestamp;
|
|
420
|
+
application?: Application | null;
|
|
393
421
|
}
|
|
394
422
|
/** https://discord.com/developers/docs/resources/message#channel-mention-object-channel-mention-structure */
|
|
395
423
|
export interface ChannelMention {
|
package/dist/package.json
CHANGED