mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-21 10:50:08 +00:00
Compare commits
40 Commits
0.38.43
...
67d1ea6d01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67d1ea6d01 | ||
|
|
5cd0686f1a | ||
|
|
391d0d4454 | ||
|
|
2d3fc09ade | ||
|
|
3637535d28 | ||
|
|
14bca2694d | ||
|
|
1e8075e41d | ||
|
|
bb1f5dfe5e | ||
|
|
b9df5c2d02 | ||
|
|
812fbbe688 | ||
|
|
edf9a9651b | ||
|
|
9c2f1746b1 | ||
|
|
f8f039867e | ||
|
|
8a4a6d1e43 | ||
|
|
2e5e31b4c4 | ||
|
|
0bd00dd111 | ||
|
|
d5dc47a36c | ||
|
|
09c71fe9d1 | ||
|
|
3691d77da3 | ||
|
|
bece6b84ee | ||
|
|
e9e7f5c24f | ||
|
|
e1b27cd5a9 | ||
|
|
5acf5c5989 | ||
|
|
d165766302 | ||
|
|
702e541bf0 | ||
|
|
27ef064f92 | ||
|
|
c21ae24f7a | ||
|
|
b2a8b740e5 | ||
|
|
19d04c00c9 | ||
|
|
2802117c0b | ||
|
|
487c3b7980 | ||
|
|
3a296fa929 | ||
|
|
1506ff0d2b | ||
|
|
d4248babd2 | ||
|
|
07d7b05cde | ||
|
|
69bbc57575 | ||
|
|
6a29982d09 | ||
|
|
ae75ee7863 | ||
|
|
763bfc810c | ||
|
|
c76a1bc372 |
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@ enableGlobalCache: true
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.13.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.14.1.cjs
|
||||
|
||||
plugins:
|
||||
- path: ./.yarn/plugins/postinstallDev.cjs
|
||||
|
||||
40
CHANGELOG.md
40
CHANGELOG.md
@@ -1,3 +1,43 @@
|
||||
## [0.38.47](https://github.com/discordjs/discord-api-types/compare/0.38.46...0.38.47) (2026-04-16)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **RESTJSONErrorCodes:** add `CannotForwardMessageWithUnreadableContent` ([#1628](https://github.com/discordjs/discord-api-types/issues/1628)) ([09c71fe](https://github.com/discordjs/discord-api-types/commit/09c71fe9d19006d0b287be35456c25809e9afc1a))
|
||||
* **RESTJSONErrorCodes:** rename `ChannelSendRateLimit` to `ChannelWriteRateLimit` ([#1627](https://github.com/discordjs/discord-api-types/issues/1627)) ([d5dc47a](https://github.com/discordjs/discord-api-types/commit/d5dc47a36c544ff8a83adcfb29684d5ac5e15af4))
|
||||
|
||||
## [0.38.46](https://github.com/discordjs/discord-api-types/compare/0.38.45...0.38.46) (2026-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* `APIUser` `global_name` description ([#1586](https://github.com/discordjs/discord-api-types/issues/1586)) ([d165766](https://github.com/discordjs/discord-api-types/commit/d165766302c8ae7c9cd78c5a2989787351ca45fa))
|
||||
* **Channel:** add applied_tags to forum thread form data body ([#1615](https://github.com/discordjs/discord-api-types/issues/1615)) ([19d04c0](https://github.com/discordjs/discord-api-types/commit/19d04c00c9f5ba585fc0d21dbf869b74f2ea2dda))
|
||||
* **Gateway:** correct scheduled event user remove dispatch type ([#1614](https://github.com/discordjs/discord-api-types/issues/1614)) ([b2a8b74](https://github.com/discordjs/discord-api-types/commit/b2a8b740e5c7904c77bd6ba3359b3b4d30b0e0f9))
|
||||
* **ReactionType:** rename Super to Burst ([#1613](https://github.com/discordjs/discord-api-types/issues/1613)) ([c21ae24](https://github.com/discordjs/discord-api-types/commit/c21ae24f7a3d8892a1126984223a5ddf996b3105))
|
||||
* **Webhook:** add delete message query, fix thread_id type ([#1611](https://github.com/discordjs/discord-api-types/issues/1611)) ([27ef064](https://github.com/discordjs/discord-api-types/commit/27ef064f922922b8da6d8baedcc0aed6261f6d59))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **Message:** more attachment and embed fields and flags ([#1609](https://github.com/discordjs/discord-api-types/issues/1609)) ([702e541](https://github.com/discordjs/discord-api-types/commit/702e541bf0bbcf54c85a47e1ba56dc982cb49b17))
|
||||
* **UserFlags:** mark ActiveDeveloper as deprecated ([#1604](https://github.com/discordjs/discord-api-types/issues/1604)) ([5acf5c5](https://github.com/discordjs/discord-api-types/commit/5acf5c5989d09cabd73f3435155b9ca2cf07be81))
|
||||
|
||||
## [0.38.45](https://github.com/discordjs/discord-api-types/compare/0.38.44...0.38.45) (2026-04-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **OAuth2:** include flags in current application result ([#1610](https://github.com/discordjs/discord-api-types/issues/1610)) ([1506ff0](https://github.com/discordjs/discord-api-types/commit/1506ff0d2bf38cea590872fbc2a463096150baf6))
|
||||
* **User:** use Snowflake for DM recipient_id ([#1612](https://github.com/discordjs/discord-api-types/issues/1612)) ([3a296fa](https://github.com/discordjs/discord-api-types/commit/3a296fa929470b0dba74ee7cdd4343c03d171916))
|
||||
|
||||
## [0.38.44](https://github.com/discordjs/discord-api-types/compare/0.38.43...0.38.44) (2026-04-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **APIApplication:** make event_webhooks_status optional ([#1603](https://github.com/discordjs/discord-api-types/issues/1603)) ([c76a1bc](https://github.com/discordjs/discord-api-types/commit/c76a1bc37208789b9b626a9363e8a3992edc2899))
|
||||
|
||||
## [0.38.43](https://github.com/discordjs/discord-api-types/compare/0.38.41...0.38.43) (2026-03-28)
|
||||
|
||||
|
||||
|
||||
40
deno/CHANGELOG.md
generated
40
deno/CHANGELOG.md
generated
@@ -1,3 +1,43 @@
|
||||
## [0.38.47](https://github.com/discordjs/discord-api-types/compare/0.38.46...0.38.47) (2026-04-16)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **RESTJSONErrorCodes:** add `CannotForwardMessageWithUnreadableContent` ([#1628](https://github.com/discordjs/discord-api-types/issues/1628)) ([09c71fe](https://github.com/discordjs/discord-api-types/commit/09c71fe9d19006d0b287be35456c25809e9afc1a))
|
||||
* **RESTJSONErrorCodes:** rename `ChannelSendRateLimit` to `ChannelWriteRateLimit` ([#1627](https://github.com/discordjs/discord-api-types/issues/1627)) ([d5dc47a](https://github.com/discordjs/discord-api-types/commit/d5dc47a36c544ff8a83adcfb29684d5ac5e15af4))
|
||||
|
||||
## [0.38.46](https://github.com/discordjs/discord-api-types/compare/0.38.45...0.38.46) (2026-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* `APIUser` `global_name` description ([#1586](https://github.com/discordjs/discord-api-types/issues/1586)) ([d165766](https://github.com/discordjs/discord-api-types/commit/d165766302c8ae7c9cd78c5a2989787351ca45fa))
|
||||
* **Channel:** add applied_tags to forum thread form data body ([#1615](https://github.com/discordjs/discord-api-types/issues/1615)) ([19d04c0](https://github.com/discordjs/discord-api-types/commit/19d04c00c9f5ba585fc0d21dbf869b74f2ea2dda))
|
||||
* **Gateway:** correct scheduled event user remove dispatch type ([#1614](https://github.com/discordjs/discord-api-types/issues/1614)) ([b2a8b74](https://github.com/discordjs/discord-api-types/commit/b2a8b740e5c7904c77bd6ba3359b3b4d30b0e0f9))
|
||||
* **ReactionType:** rename Super to Burst ([#1613](https://github.com/discordjs/discord-api-types/issues/1613)) ([c21ae24](https://github.com/discordjs/discord-api-types/commit/c21ae24f7a3d8892a1126984223a5ddf996b3105))
|
||||
* **Webhook:** add delete message query, fix thread_id type ([#1611](https://github.com/discordjs/discord-api-types/issues/1611)) ([27ef064](https://github.com/discordjs/discord-api-types/commit/27ef064f922922b8da6d8baedcc0aed6261f6d59))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **Message:** more attachment and embed fields and flags ([#1609](https://github.com/discordjs/discord-api-types/issues/1609)) ([702e541](https://github.com/discordjs/discord-api-types/commit/702e541bf0bbcf54c85a47e1ba56dc982cb49b17))
|
||||
* **UserFlags:** mark ActiveDeveloper as deprecated ([#1604](https://github.com/discordjs/discord-api-types/issues/1604)) ([5acf5c5](https://github.com/discordjs/discord-api-types/commit/5acf5c5989d09cabd73f3435155b9ca2cf07be81))
|
||||
|
||||
## [0.38.45](https://github.com/discordjs/discord-api-types/compare/0.38.44...0.38.45) (2026-04-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **OAuth2:** include flags in current application result ([#1610](https://github.com/discordjs/discord-api-types/issues/1610)) ([1506ff0](https://github.com/discordjs/discord-api-types/commit/1506ff0d2bf38cea590872fbc2a463096150baf6))
|
||||
* **User:** use Snowflake for DM recipient_id ([#1612](https://github.com/discordjs/discord-api-types/issues/1612)) ([3a296fa](https://github.com/discordjs/discord-api-types/commit/3a296fa929470b0dba74ee7cdd4343c03d171916))
|
||||
|
||||
## [0.38.44](https://github.com/discordjs/discord-api-types/compare/0.38.43...0.38.44) (2026-04-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **APIApplication:** make event_webhooks_status optional ([#1603](https://github.com/discordjs/discord-api-types/issues/1603)) ([c76a1bc](https://github.com/discordjs/discord-api-types/commit/c76a1bc37208789b9b626a9363e8a3992edc2899))
|
||||
|
||||
## [0.38.43](https://github.com/discordjs/discord-api-types/compare/0.38.41...0.38.43) (2026-03-28)
|
||||
|
||||
|
||||
|
||||
2
deno/gateway/v10.ts
generated
2
deno/gateway/v10.ts
generated
@@ -1382,7 +1382,7 @@ export interface GatewayGuildScheduledEventUserAddDispatchData {
|
||||
*/
|
||||
export type GatewayGuildScheduledEventUserRemoveDispatch = _DataPayload<
|
||||
GatewayDispatchEvents.GuildScheduledEventUserRemove,
|
||||
GatewayGuildScheduledEventUserAddDispatchData
|
||||
GatewayGuildScheduledEventUserRemoveDispatchData
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
2
deno/gateway/v9.ts
generated
2
deno/gateway/v9.ts
generated
@@ -1381,7 +1381,7 @@ export interface GatewayGuildScheduledEventUserAddDispatchData {
|
||||
*/
|
||||
export type GatewayGuildScheduledEventUserRemoveDispatch = _DataPayload<
|
||||
GatewayDispatchEvents.GuildScheduledEventUserRemove,
|
||||
GatewayGuildScheduledEventUserAddDispatchData
|
||||
GatewayGuildScheduledEventUserRemoveDispatchData
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
2
deno/payloads/v10/application.ts
generated
2
deno/payloads/v10/application.ts
generated
@@ -154,7 +154,7 @@ export interface APIApplication {
|
||||
/**
|
||||
* If webhook events are enabled for the app
|
||||
*/
|
||||
event_webhooks_status: ApplicationWebhookEventStatus;
|
||||
event_webhooks_status?: ApplicationWebhookEventStatus;
|
||||
/**
|
||||
* List of webhook event types the app subscribes to
|
||||
*/
|
||||
|
||||
214
deno/payloads/v10/message.ts
generated
214
deno/payloads/v10/message.ts
generated
@@ -87,7 +87,7 @@ export interface APIBaseMessageNoChannel {
|
||||
*/
|
||||
mention_channels?: APIChannelMention[];
|
||||
/**
|
||||
* Any attached files
|
||||
* Any attached files that are not referenced in embeds or components
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure}
|
||||
*
|
||||
@@ -617,9 +617,9 @@ export interface APIEmbed {
|
||||
/**
|
||||
* Thumbnail information
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-image-structure}
|
||||
*/
|
||||
thumbnail?: APIEmbedThumbnail;
|
||||
thumbnail?: APIEmbedImage;
|
||||
/**
|
||||
* Video information
|
||||
*
|
||||
@@ -646,6 +646,13 @@ export interface APIEmbed {
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-field-structure}
|
||||
*/
|
||||
fields?: APIEmbedField[];
|
||||
/**
|
||||
* Embed flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -689,27 +696,30 @@ export enum EmbedType {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
*/
|
||||
export interface APIEmbedThumbnail {
|
||||
export enum EmbedFlags {
|
||||
/**
|
||||
* Source url of thumbnail (only supports http(s) and attachments)
|
||||
* This embed is a fallback for a reply to an activity card
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* A proxied url of the thumbnail
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* Height of thumbnail
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
* Width of thumbnail
|
||||
*/
|
||||
width?: number;
|
||||
IsContentInventoryEntry = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
*/
|
||||
export enum EmbedMediaFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link APIEmbedImage} instead.
|
||||
*/
|
||||
export interface APIEmbedThumbnail extends APIEmbedImage {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-video-structure}
|
||||
*/
|
||||
@@ -730,6 +740,33 @@ export interface APIEmbedVideo {
|
||||
* Width of video
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The video's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the video
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the video
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -752,6 +789,33 @@ export interface APIEmbedImage {
|
||||
* Width of image
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The image's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the image
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the image
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -854,7 +918,7 @@ export interface APIAttachment {
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Description for the file
|
||||
* Description (alt text) for the file (max 1024 characters)
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
@@ -876,15 +940,27 @@ export interface APIAttachment {
|
||||
*/
|
||||
proxy_url: string;
|
||||
/**
|
||||
* Height of file (if image)
|
||||
* Height of file (if image or video)
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* Width of file (if image)
|
||||
* Width of file (if image or video)
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Whether this attachment is ephemeral
|
||||
*
|
||||
* @remarks Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.
|
||||
*/
|
||||
ephemeral?: boolean;
|
||||
/**
|
||||
@@ -899,16 +975,48 @@ export interface APIAttachment {
|
||||
* Attachment flags combined as a bitfield
|
||||
*/
|
||||
flags?: AttachmentFlags;
|
||||
/**
|
||||
* For Clips, array of users who were in the stream
|
||||
*/
|
||||
clip_participants?: APIUser[];
|
||||
/**
|
||||
* For Clips, when the clip was created
|
||||
*/
|
||||
clip_created_at?: string;
|
||||
/**
|
||||
* For Clips, the application in the stream, if recognized
|
||||
*/
|
||||
application?: APIApplication | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure-attachment-flags}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#attachment-object-attachment-flags}
|
||||
*/
|
||||
export enum AttachmentFlags {
|
||||
/**
|
||||
* This attachment is a Clip from a stream
|
||||
*
|
||||
* @see {@link https://support.discord.com/hc/en-us/articles/16861982215703}
|
||||
*/
|
||||
IsClip = 1 << 0,
|
||||
/**
|
||||
* This attachment is the thumbnail of a thread in a media channel, displayed in the grid but not on the message
|
||||
*/
|
||||
IsThumbnail = 1 << 1,
|
||||
/**
|
||||
* This attachment has been edited using the remix feature on mobile
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
IsRemix = 1 << 2,
|
||||
/**
|
||||
* This attachment was marked as a spoiler and is blurred until clicked
|
||||
*/
|
||||
IsSpoiler = 1 << 3,
|
||||
/**
|
||||
* This attachment is an animated image
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1482,6 +1590,9 @@ export interface APITextInputComponent extends APIBaseComponent<ComponentType.Te
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable This enum is currently not documented by Discord
|
||||
*/
|
||||
export enum UnfurledMediaItemLoadingState {
|
||||
Unknown,
|
||||
Loading,
|
||||
@@ -1494,37 +1605,78 @@ export enum UnfurledMediaItemLoadingState {
|
||||
*/
|
||||
export interface APIUnfurledMediaItem {
|
||||
/**
|
||||
* Supports arbitrary urls and attachment://<filename> references
|
||||
* Supports arbitrary urls and `attachment://<filename>` references
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* The proxied url of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The proxied url of the media item
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* The width of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The width of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* The height of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The height of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string | null;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
placeholder_version?: number | null;
|
||||
/**
|
||||
* The media type of the content. This field is ignored and provided by the API as part of the response
|
||||
* The media type of the content
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string | null;
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
flags?: number;
|
||||
/**
|
||||
* The id of the uploaded attachment. This field is ignored and provided by the API as part of the response
|
||||
* @unstable This field is currently not documented by Discord
|
||||
*/
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
/**
|
||||
* Unfurled media item flags combined as a bitfield
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: UnfurledMediaItemFlags;
|
||||
/**
|
||||
* The id of the uploaded attachment.
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @remarks Only present if the media item was uploaded as an attachment.
|
||||
*/
|
||||
attachment_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
*/
|
||||
export enum UnfurledMediaItemFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
* A Section is a top-level layout component that allows you to join text contextually with an accessory.
|
||||
*
|
||||
|
||||
4
deno/payloads/v10/user.ts
generated
4
deno/payloads/v10/user.ts
generated
@@ -22,7 +22,7 @@ export interface APIUser {
|
||||
*/
|
||||
discriminator: string;
|
||||
/**
|
||||
* The user's display name, if it is set. For bots, this is the application name
|
||||
* The user's display name, if it is set
|
||||
*/
|
||||
global_name: string | null;
|
||||
/**
|
||||
@@ -194,6 +194,8 @@ export enum UserFlags {
|
||||
DisablePremium = 1 << 21,
|
||||
/**
|
||||
* User is an {@link https://support-dev.discord.com/hc/articles/10113997751447 | Active Developer}
|
||||
*
|
||||
* @deprecated This user flag is no longer available. See {@link https://support-dev.discord.com/hc/articles/10113997751447-Active-Developer-Badge} for more information.
|
||||
*/
|
||||
ActiveDeveloper = 1 << 22,
|
||||
/**
|
||||
|
||||
2
deno/payloads/v9/application.ts
generated
2
deno/payloads/v9/application.ts
generated
@@ -154,7 +154,7 @@ export interface APIApplication {
|
||||
/**
|
||||
* If webhook events are enabled for the app
|
||||
*/
|
||||
event_webhooks_status: ApplicationWebhookEventStatus;
|
||||
event_webhooks_status?: ApplicationWebhookEventStatus;
|
||||
/**
|
||||
* List of webhook event types the app subscribes to
|
||||
*/
|
||||
|
||||
214
deno/payloads/v9/message.ts
generated
214
deno/payloads/v9/message.ts
generated
@@ -86,7 +86,7 @@ export interface APIBaseMessageNoChannel {
|
||||
*/
|
||||
mention_channels?: APIChannelMention[];
|
||||
/**
|
||||
* Any attached files
|
||||
* Any attached files that are not referenced in embeds or components
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure}
|
||||
*
|
||||
@@ -612,9 +612,9 @@ export interface APIEmbed {
|
||||
/**
|
||||
* Thumbnail information
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-image-structure}
|
||||
*/
|
||||
thumbnail?: APIEmbedThumbnail;
|
||||
thumbnail?: APIEmbedImage;
|
||||
/**
|
||||
* Video information
|
||||
*
|
||||
@@ -641,6 +641,13 @@ export interface APIEmbed {
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-field-structure}
|
||||
*/
|
||||
fields?: APIEmbedField[];
|
||||
/**
|
||||
* Embed flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -684,27 +691,30 @@ export enum EmbedType {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
*/
|
||||
export interface APIEmbedThumbnail {
|
||||
export enum EmbedFlags {
|
||||
/**
|
||||
* Source url of thumbnail (only supports http(s) and attachments)
|
||||
* This embed is a fallback for a reply to an activity card
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* A proxied url of the thumbnail
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* Height of thumbnail
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
* Width of thumbnail
|
||||
*/
|
||||
width?: number;
|
||||
IsContentInventoryEntry = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
*/
|
||||
export enum EmbedMediaFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link APIEmbedImage} instead.
|
||||
*/
|
||||
export interface APIEmbedThumbnail extends APIEmbedImage {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-video-structure}
|
||||
*/
|
||||
@@ -725,6 +735,33 @@ export interface APIEmbedVideo {
|
||||
* Width of video
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The video's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the video
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the video
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -747,6 +784,33 @@ export interface APIEmbedImage {
|
||||
* Width of image
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The image's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the image
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the image
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -849,7 +913,7 @@ export interface APIAttachment {
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Description for the file
|
||||
* Description (alt text) for the file (max 1024 characters)
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
@@ -871,15 +935,27 @@ export interface APIAttachment {
|
||||
*/
|
||||
proxy_url: string;
|
||||
/**
|
||||
* Height of file (if image)
|
||||
* Height of file (if image or video)
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* Width of file (if image)
|
||||
* Width of file (if image or video)
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Whether this attachment is ephemeral
|
||||
*
|
||||
* @remarks Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.
|
||||
*/
|
||||
ephemeral?: boolean;
|
||||
/**
|
||||
@@ -894,16 +970,48 @@ export interface APIAttachment {
|
||||
* Attachment flags combined as a bitfield
|
||||
*/
|
||||
flags?: AttachmentFlags;
|
||||
/**
|
||||
* For Clips, array of users who were in the stream
|
||||
*/
|
||||
clip_participants?: APIUser[];
|
||||
/**
|
||||
* For Clips, when the clip was created
|
||||
*/
|
||||
clip_created_at?: string;
|
||||
/**
|
||||
* For Clips, the application in the stream, if recognized
|
||||
*/
|
||||
application?: APIApplication | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure-attachment-flags}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#attachment-object-attachment-flags}
|
||||
*/
|
||||
export enum AttachmentFlags {
|
||||
/**
|
||||
* This attachment is a Clip from a stream
|
||||
*
|
||||
* @see {@link https://support.discord.com/hc/en-us/articles/16861982215703}
|
||||
*/
|
||||
IsClip = 1 << 0,
|
||||
/**
|
||||
* This attachment is the thumbnail of a thread in a media channel, displayed in the grid but not on the message
|
||||
*/
|
||||
IsThumbnail = 1 << 1,
|
||||
/**
|
||||
* This attachment has been edited using the remix feature on mobile
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
IsRemix = 1 << 2,
|
||||
/**
|
||||
* This attachment was marked as a spoiler and is blurred until clicked
|
||||
*/
|
||||
IsSpoiler = 1 << 3,
|
||||
/**
|
||||
* This attachment is an animated image
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1477,6 +1585,9 @@ export interface APITextInputComponent extends APIBaseComponent<ComponentType.Te
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable This enum is currently not documented by Discord
|
||||
*/
|
||||
export enum UnfurledMediaItemLoadingState {
|
||||
Unknown,
|
||||
Loading,
|
||||
@@ -1489,37 +1600,78 @@ export enum UnfurledMediaItemLoadingState {
|
||||
*/
|
||||
export interface APIUnfurledMediaItem {
|
||||
/**
|
||||
* Supports arbitrary urls and attachment://<filename> references
|
||||
* Supports arbitrary urls and `attachment://<filename>` references
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* The proxied url of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The proxied url of the media item
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* The width of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The width of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* The height of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The height of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string | null;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
placeholder_version?: number | null;
|
||||
/**
|
||||
* The media type of the content. This field is ignored and provided by the API as part of the response
|
||||
* The media type of the content
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string | null;
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
flags?: number;
|
||||
/**
|
||||
* The id of the uploaded attachment. This field is ignored and provided by the API as part of the response
|
||||
* @unstable This field is currently not documented by Discord
|
||||
*/
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
/**
|
||||
* Unfurled media item flags combined as a bitfield
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: UnfurledMediaItemFlags;
|
||||
/**
|
||||
* The id of the uploaded attachment.
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @remarks Only present if the media item was uploaded as an attachment.
|
||||
*/
|
||||
attachment_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
*/
|
||||
export enum UnfurledMediaItemFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
* A Section is a top-level layout component that allows you to join text contextually with an accessory.
|
||||
*
|
||||
|
||||
4
deno/payloads/v9/user.ts
generated
4
deno/payloads/v9/user.ts
generated
@@ -22,7 +22,7 @@ export interface APIUser {
|
||||
*/
|
||||
discriminator: string;
|
||||
/**
|
||||
* The user's display name, if it is set. For bots, this is the application name
|
||||
* The user's display name, if it is set
|
||||
*/
|
||||
global_name: string | null;
|
||||
/**
|
||||
@@ -194,6 +194,8 @@ export enum UserFlags {
|
||||
DisablePremium = 1 << 21,
|
||||
/**
|
||||
* User is an {@link https://support-dev.discord.com/hc/articles/10113997751447 | Active Developer}
|
||||
*
|
||||
* @deprecated This user flag is no longer available. See {@link https://support-dev.discord.com/hc/articles/10113997751447-Active-Developer-Badge} for more information.
|
||||
*/
|
||||
ActiveDeveloper = 1 << 22,
|
||||
/**
|
||||
|
||||
14
deno/rest/common.ts
generated
14
deno/rest/common.ts
generated
@@ -75,8 +75,16 @@ export enum RESTJSONErrorCodes {
|
||||
|
||||
UnderMinimumAge = 20_024,
|
||||
|
||||
ChannelSendRateLimit = 20_028,
|
||||
ServerSendRateLimit,
|
||||
ChannelWriteRateLimit = 20_028,
|
||||
/**
|
||||
* @deprecated Use {@link RESTJSONErrorCodes.ChannelWriteRateLimit} instead
|
||||
*/
|
||||
ChannelSendRateLimit = ChannelWriteRateLimit,
|
||||
ServerWriteRateLimit = 20_029,
|
||||
/**
|
||||
* @deprecated Use {@link RESTJSONErrorCodes.ServerWriteRateLimit} instead
|
||||
*/
|
||||
ServerSendRateLimit = ServerWriteRateLimit,
|
||||
|
||||
StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords = 20_031,
|
||||
|
||||
@@ -301,6 +309,8 @@ export enum RESTJSONErrorCodes {
|
||||
MaximumActiveThreads,
|
||||
MaximumActiveAnnouncementThreads,
|
||||
|
||||
CannotForwardMessageWithUnreadableContent = 160_014,
|
||||
|
||||
InvalidJSONForUploadedLottieFile = 170_001,
|
||||
UploadedLottiesCannotContainRasterizedImages,
|
||||
StickerMaximumFramerateExceeded,
|
||||
|
||||
12
deno/rest/v10/channel.ts
generated
12
deno/rest/v10/channel.ts
generated
@@ -411,7 +411,13 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery {
|
||||
*/
|
||||
export enum ReactionType {
|
||||
Normal,
|
||||
Super,
|
||||
Burst,
|
||||
// eslint-disable @typescript-eslint/no-duplicate-enum-values
|
||||
/**
|
||||
* @deprecated Use {@link ReactionType.Burst} instead
|
||||
*/
|
||||
Super = Burst,
|
||||
// eslint-enable @typescript-eslint/no-duplicate-enum-values
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -746,6 +752,10 @@ export type RESTPostAPIGuildForumThreadsFormDataBody = RESTPostAPIChannelMessage
|
||||
* The initial message of the thread
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* The IDs of the set of tags to apply to the thread; limited to 5
|
||||
*/
|
||||
applied_tags?: Snowflake[] | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
2
deno/rest/v10/oauth2.ts
generated
2
deno/rest/v10/oauth2.ts
generated
@@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information}
|
||||
*/
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = Omit<APIApplication, 'flags'>;
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}
|
||||
|
||||
2
deno/rest/v10/user.ts
generated
2
deno/rest/v10/user.ts
generated
@@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody {
|
||||
/**
|
||||
* The recipient to open a DM channel with
|
||||
*/
|
||||
recipient_id: string;
|
||||
recipient_id: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
9
deno/rest/v10/webhook.ts
generated
9
deno/rest/v10/webhook.ts
generated
@@ -256,7 +256,7 @@ export type RESTGetAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: string;
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -309,6 +309,13 @@ export type RESTPatchAPIWebhookWithTokenMessageQuery = Pick<
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/webhook#delete-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTDeleteAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#delete-webhook-message}
|
||||
*/
|
||||
|
||||
12
deno/rest/v9/channel.ts
generated
12
deno/rest/v9/channel.ts
generated
@@ -418,7 +418,13 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery {
|
||||
*/
|
||||
export enum ReactionType {
|
||||
Normal,
|
||||
Super,
|
||||
Burst,
|
||||
// eslint-disable @typescript-eslint/no-duplicate-enum-values
|
||||
/**
|
||||
* @deprecated Use {@link ReactionType.Burst} instead
|
||||
*/
|
||||
Super = Burst,
|
||||
// eslint-enable @typescript-eslint/no-duplicate-enum-values
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -759,6 +765,10 @@ export type RESTPostAPIGuildForumThreadsFormDataBody = RESTPostAPIChannelMessage
|
||||
* The initial message of the thread
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* The IDs of the set of tags to apply to the thread; limited to 5
|
||||
*/
|
||||
applied_tags?: Snowflake[] | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
2
deno/rest/v9/oauth2.ts
generated
2
deno/rest/v9/oauth2.ts
generated
@@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information}
|
||||
*/
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = Omit<APIApplication, 'flags'>;
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}
|
||||
|
||||
2
deno/rest/v9/user.ts
generated
2
deno/rest/v9/user.ts
generated
@@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody {
|
||||
/**
|
||||
* The recipient to open a DM channel with
|
||||
*/
|
||||
recipient_id: string;
|
||||
recipient_id: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
9
deno/rest/v9/webhook.ts
generated
9
deno/rest/v9/webhook.ts
generated
@@ -256,7 +256,7 @@ export type RESTGetAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: string;
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -309,6 +309,13 @@ export type RESTPatchAPIWebhookWithTokenMessageQuery = Pick<
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/webhook#delete-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTDeleteAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#delete-webhook-message}
|
||||
*/
|
||||
|
||||
@@ -1382,7 +1382,7 @@ export interface GatewayGuildScheduledEventUserAddDispatchData {
|
||||
*/
|
||||
export type GatewayGuildScheduledEventUserRemoveDispatch = _DataPayload<
|
||||
GatewayDispatchEvents.GuildScheduledEventUserRemove,
|
||||
GatewayGuildScheduledEventUserAddDispatchData
|
||||
GatewayGuildScheduledEventUserRemoveDispatchData
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1381,7 +1381,7 @@ export interface GatewayGuildScheduledEventUserAddDispatchData {
|
||||
*/
|
||||
export type GatewayGuildScheduledEventUserRemoveDispatch = _DataPayload<
|
||||
GatewayDispatchEvents.GuildScheduledEventUserRemove,
|
||||
GatewayGuildScheduledEventUserAddDispatchData
|
||||
GatewayGuildScheduledEventUserRemoveDispatchData
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
10
package.json
10
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-api-types",
|
||||
"version": "0.38.43",
|
||||
"version": "0.38.47",
|
||||
"description": "Discord API typings that are kept up to date for use in bot library creation.",
|
||||
"homepage": "https://discord-api-types.dev",
|
||||
"workspaces": [
|
||||
@@ -157,7 +157,7 @@
|
||||
"prettier": "^3.7.4",
|
||||
"pretty-quick": "^4.1.1",
|
||||
"rimraf": "^6.0.1",
|
||||
"ts-morph": "^27.0.0",
|
||||
"ts-morph": "^28.0.0",
|
||||
"tsutils": "^3.21.0",
|
||||
"tsx": "^4.20.3",
|
||||
"typescript": "^6.0.0",
|
||||
@@ -207,9 +207,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.13.0",
|
||||
"packageManager": "yarn@4.14.1",
|
||||
"volta": {
|
||||
"node": "24.14.1",
|
||||
"yarn": "4.13.0"
|
||||
"node": "24.15.0",
|
||||
"yarn": "4.14.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ export interface APIApplication {
|
||||
/**
|
||||
* If webhook events are enabled for the app
|
||||
*/
|
||||
event_webhooks_status: ApplicationWebhookEventStatus;
|
||||
event_webhooks_status?: ApplicationWebhookEventStatus;
|
||||
/**
|
||||
* List of webhook event types the app subscribes to
|
||||
*/
|
||||
|
||||
@@ -87,7 +87,7 @@ export interface APIBaseMessageNoChannel {
|
||||
*/
|
||||
mention_channels?: APIChannelMention[];
|
||||
/**
|
||||
* Any attached files
|
||||
* Any attached files that are not referenced in embeds or components
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure}
|
||||
*
|
||||
@@ -617,9 +617,9 @@ export interface APIEmbed {
|
||||
/**
|
||||
* Thumbnail information
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-image-structure}
|
||||
*/
|
||||
thumbnail?: APIEmbedThumbnail;
|
||||
thumbnail?: APIEmbedImage;
|
||||
/**
|
||||
* Video information
|
||||
*
|
||||
@@ -646,6 +646,13 @@ export interface APIEmbed {
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-field-structure}
|
||||
*/
|
||||
fields?: APIEmbedField[];
|
||||
/**
|
||||
* Embed flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -689,27 +696,30 @@ export enum EmbedType {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
*/
|
||||
export interface APIEmbedThumbnail {
|
||||
export enum EmbedFlags {
|
||||
/**
|
||||
* Source url of thumbnail (only supports http(s) and attachments)
|
||||
* This embed is a fallback for a reply to an activity card
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* A proxied url of the thumbnail
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* Height of thumbnail
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
* Width of thumbnail
|
||||
*/
|
||||
width?: number;
|
||||
IsContentInventoryEntry = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
*/
|
||||
export enum EmbedMediaFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link APIEmbedImage} instead.
|
||||
*/
|
||||
export interface APIEmbedThumbnail extends APIEmbedImage {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-video-structure}
|
||||
*/
|
||||
@@ -730,6 +740,33 @@ export interface APIEmbedVideo {
|
||||
* Width of video
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The video's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the video
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the video
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -752,6 +789,33 @@ export interface APIEmbedImage {
|
||||
* Width of image
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The image's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the image
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the image
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -854,7 +918,7 @@ export interface APIAttachment {
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Description for the file
|
||||
* Description (alt text) for the file (max 1024 characters)
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
@@ -876,15 +940,27 @@ export interface APIAttachment {
|
||||
*/
|
||||
proxy_url: string;
|
||||
/**
|
||||
* Height of file (if image)
|
||||
* Height of file (if image or video)
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* Width of file (if image)
|
||||
* Width of file (if image or video)
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Whether this attachment is ephemeral
|
||||
*
|
||||
* @remarks Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.
|
||||
*/
|
||||
ephemeral?: boolean;
|
||||
/**
|
||||
@@ -899,16 +975,48 @@ export interface APIAttachment {
|
||||
* Attachment flags combined as a bitfield
|
||||
*/
|
||||
flags?: AttachmentFlags;
|
||||
/**
|
||||
* For Clips, array of users who were in the stream
|
||||
*/
|
||||
clip_participants?: APIUser[];
|
||||
/**
|
||||
* For Clips, when the clip was created
|
||||
*/
|
||||
clip_created_at?: string;
|
||||
/**
|
||||
* For Clips, the application in the stream, if recognized
|
||||
*/
|
||||
application?: APIApplication | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure-attachment-flags}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#attachment-object-attachment-flags}
|
||||
*/
|
||||
export enum AttachmentFlags {
|
||||
/**
|
||||
* This attachment is a Clip from a stream
|
||||
*
|
||||
* @see {@link https://support.discord.com/hc/en-us/articles/16861982215703}
|
||||
*/
|
||||
IsClip = 1 << 0,
|
||||
/**
|
||||
* This attachment is the thumbnail of a thread in a media channel, displayed in the grid but not on the message
|
||||
*/
|
||||
IsThumbnail = 1 << 1,
|
||||
/**
|
||||
* This attachment has been edited using the remix feature on mobile
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
IsRemix = 1 << 2,
|
||||
/**
|
||||
* This attachment was marked as a spoiler and is blurred until clicked
|
||||
*/
|
||||
IsSpoiler = 1 << 3,
|
||||
/**
|
||||
* This attachment is an animated image
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1482,6 +1590,9 @@ export interface APITextInputComponent extends APIBaseComponent<ComponentType.Te
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable This enum is currently not documented by Discord
|
||||
*/
|
||||
export enum UnfurledMediaItemLoadingState {
|
||||
Unknown,
|
||||
Loading,
|
||||
@@ -1494,37 +1605,78 @@ export enum UnfurledMediaItemLoadingState {
|
||||
*/
|
||||
export interface APIUnfurledMediaItem {
|
||||
/**
|
||||
* Supports arbitrary urls and attachment://<filename> references
|
||||
* Supports arbitrary urls and `attachment://<filename>` references
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* The proxied url of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The proxied url of the media item
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* The width of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The width of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* The height of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The height of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string | null;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
placeholder_version?: number | null;
|
||||
/**
|
||||
* The media type of the content. This field is ignored and provided by the API as part of the response
|
||||
* The media type of the content
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string | null;
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
flags?: number;
|
||||
/**
|
||||
* The id of the uploaded attachment. This field is ignored and provided by the API as part of the response
|
||||
* @unstable This field is currently not documented by Discord
|
||||
*/
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
/**
|
||||
* Unfurled media item flags combined as a bitfield
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: UnfurledMediaItemFlags;
|
||||
/**
|
||||
* The id of the uploaded attachment.
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @remarks Only present if the media item was uploaded as an attachment.
|
||||
*/
|
||||
attachment_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
*/
|
||||
export enum UnfurledMediaItemFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
* A Section is a top-level layout component that allows you to join text contextually with an accessory.
|
||||
*
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface APIUser {
|
||||
*/
|
||||
discriminator: string;
|
||||
/**
|
||||
* The user's display name, if it is set. For bots, this is the application name
|
||||
* The user's display name, if it is set
|
||||
*/
|
||||
global_name: string | null;
|
||||
/**
|
||||
@@ -194,6 +194,8 @@ export enum UserFlags {
|
||||
DisablePremium = 1 << 21,
|
||||
/**
|
||||
* User is an {@link https://support-dev.discord.com/hc/articles/10113997751447 | Active Developer}
|
||||
*
|
||||
* @deprecated This user flag is no longer available. See {@link https://support-dev.discord.com/hc/articles/10113997751447-Active-Developer-Badge} for more information.
|
||||
*/
|
||||
ActiveDeveloper = 1 << 22,
|
||||
/**
|
||||
|
||||
@@ -154,7 +154,7 @@ export interface APIApplication {
|
||||
/**
|
||||
* If webhook events are enabled for the app
|
||||
*/
|
||||
event_webhooks_status: ApplicationWebhookEventStatus;
|
||||
event_webhooks_status?: ApplicationWebhookEventStatus;
|
||||
/**
|
||||
* List of webhook event types the app subscribes to
|
||||
*/
|
||||
|
||||
@@ -86,7 +86,7 @@ export interface APIBaseMessageNoChannel {
|
||||
*/
|
||||
mention_channels?: APIChannelMention[];
|
||||
/**
|
||||
* Any attached files
|
||||
* Any attached files that are not referenced in embeds or components
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure}
|
||||
*
|
||||
@@ -612,9 +612,9 @@ export interface APIEmbed {
|
||||
/**
|
||||
* Thumbnail information
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-image-structure}
|
||||
*/
|
||||
thumbnail?: APIEmbedThumbnail;
|
||||
thumbnail?: APIEmbedImage;
|
||||
/**
|
||||
* Video information
|
||||
*
|
||||
@@ -641,6 +641,13 @@ export interface APIEmbed {
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-field-structure}
|
||||
*/
|
||||
fields?: APIEmbedField[];
|
||||
/**
|
||||
* Embed flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -684,27 +691,30 @@ export enum EmbedType {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-flags}
|
||||
*/
|
||||
export interface APIEmbedThumbnail {
|
||||
export enum EmbedFlags {
|
||||
/**
|
||||
* Source url of thumbnail (only supports http(s) and attachments)
|
||||
* This embed is a fallback for a reply to an activity card
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* A proxied url of the thumbnail
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* Height of thumbnail
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
* Width of thumbnail
|
||||
*/
|
||||
width?: number;
|
||||
IsContentInventoryEntry = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
*/
|
||||
export enum EmbedMediaFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link APIEmbedImage} instead.
|
||||
*/
|
||||
export interface APIEmbedThumbnail extends APIEmbedImage {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#embed-object-embed-video-structure}
|
||||
*/
|
||||
@@ -725,6 +735,33 @@ export interface APIEmbedVideo {
|
||||
* Width of video
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The video's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the video
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the video
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -747,6 +784,33 @@ export interface APIEmbedImage {
|
||||
* Width of image
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
* The image's media type
|
||||
*
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* ThumbHash placeholder of the image
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Description (alt text) for the image
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Embed media flags combined as a bitfield
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#embed-object-embed-media-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: EmbedMediaFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -849,7 +913,7 @@ export interface APIAttachment {
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Description for the file
|
||||
* Description (alt text) for the file (max 1024 characters)
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
@@ -871,15 +935,27 @@ export interface APIAttachment {
|
||||
*/
|
||||
proxy_url: string;
|
||||
/**
|
||||
* Height of file (if image)
|
||||
* Height of file (if image or video)
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* Width of file (if image)
|
||||
* Width of file (if image or video)
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*/
|
||||
placeholder_version?: number;
|
||||
/**
|
||||
* Whether this attachment is ephemeral
|
||||
*
|
||||
* @remarks Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.
|
||||
*/
|
||||
ephemeral?: boolean;
|
||||
/**
|
||||
@@ -894,16 +970,48 @@ export interface APIAttachment {
|
||||
* Attachment flags combined as a bitfield
|
||||
*/
|
||||
flags?: AttachmentFlags;
|
||||
/**
|
||||
* For Clips, array of users who were in the stream
|
||||
*/
|
||||
clip_participants?: APIUser[];
|
||||
/**
|
||||
* For Clips, when the clip was created
|
||||
*/
|
||||
clip_created_at?: string;
|
||||
/**
|
||||
* For Clips, the application in the stream, if recognized
|
||||
*/
|
||||
application?: APIApplication | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure-attachment-flags}
|
||||
* @see {@link https://docs.discord.com/developers/resources/message#attachment-object-attachment-flags}
|
||||
*/
|
||||
export enum AttachmentFlags {
|
||||
/**
|
||||
* This attachment is a Clip from a stream
|
||||
*
|
||||
* @see {@link https://support.discord.com/hc/en-us/articles/16861982215703}
|
||||
*/
|
||||
IsClip = 1 << 0,
|
||||
/**
|
||||
* This attachment is the thumbnail of a thread in a media channel, displayed in the grid but not on the message
|
||||
*/
|
||||
IsThumbnail = 1 << 1,
|
||||
/**
|
||||
* This attachment has been edited using the remix feature on mobile
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
IsRemix = 1 << 2,
|
||||
/**
|
||||
* This attachment was marked as a spoiler and is blurred until clicked
|
||||
*/
|
||||
IsSpoiler = 1 << 3,
|
||||
/**
|
||||
* This attachment is an animated image
|
||||
*/
|
||||
IsAnimated = 1 << 5,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1477,6 +1585,9 @@ export interface APITextInputComponent extends APIBaseComponent<ComponentType.Te
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable This enum is currently not documented by Discord
|
||||
*/
|
||||
export enum UnfurledMediaItemLoadingState {
|
||||
Unknown,
|
||||
Loading,
|
||||
@@ -1489,37 +1600,78 @@ export enum UnfurledMediaItemLoadingState {
|
||||
*/
|
||||
export interface APIUnfurledMediaItem {
|
||||
/**
|
||||
* Supports arbitrary urls and attachment://<filename> references
|
||||
* Supports arbitrary urls and `attachment://<filename>` references
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* The proxied url of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The proxied url of the media item
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
proxy_url?: string;
|
||||
/**
|
||||
* The width of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The width of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
width?: number | null;
|
||||
/**
|
||||
* The height of the media item. This field is ignored and provided by the API as part of the response
|
||||
* The height of the media item (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
height?: number | null;
|
||||
/**
|
||||
* ThumbHash placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://evanw.github.io/thumbhash/}
|
||||
*/
|
||||
placeholder?: string | null;
|
||||
/**
|
||||
* Version of the placeholder (if image or video)
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
*/
|
||||
placeholder_version?: number | null;
|
||||
/**
|
||||
* The media type of the content. This field is ignored and provided by the API as part of the response
|
||||
* The media type of the content
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://en.wikipedia.org/wiki/Media_type}
|
||||
*/
|
||||
content_type?: string | null;
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
flags?: number;
|
||||
/**
|
||||
* The id of the uploaded attachment. This field is ignored and provided by the API as part of the response
|
||||
* @unstable This field is currently not documented by Discord
|
||||
*/
|
||||
loading_state?: UnfurledMediaItemLoadingState;
|
||||
/**
|
||||
* Unfurled media item flags combined as a bitfield
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
* @see {@link https://en.wikipedia.org/wiki/Bit_field}
|
||||
*/
|
||||
flags?: UnfurledMediaItemFlags;
|
||||
/**
|
||||
* The id of the uploaded attachment.
|
||||
*
|
||||
* @remarks This field is ignored and provided by the API as part of the response.
|
||||
* @remarks Only present if the media item was uploaded as an attachment.
|
||||
*/
|
||||
attachment_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/components/reference#unfurled-media-item-unfurled-media-item-flags}
|
||||
*/
|
||||
export enum UnfurledMediaItemFlags {
|
||||
/**
|
||||
* This image is animated
|
||||
*/
|
||||
IsAnimated = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
* A Section is a top-level layout component that allows you to join text contextually with an accessory.
|
||||
*
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface APIUser {
|
||||
*/
|
||||
discriminator: string;
|
||||
/**
|
||||
* The user's display name, if it is set. For bots, this is the application name
|
||||
* The user's display name, if it is set
|
||||
*/
|
||||
global_name: string | null;
|
||||
/**
|
||||
@@ -194,6 +194,8 @@ export enum UserFlags {
|
||||
DisablePremium = 1 << 21,
|
||||
/**
|
||||
* User is an {@link https://support-dev.discord.com/hc/articles/10113997751447 | Active Developer}
|
||||
*
|
||||
* @deprecated This user flag is no longer available. See {@link https://support-dev.discord.com/hc/articles/10113997751447-Active-Developer-Badge} for more information.
|
||||
*/
|
||||
ActiveDeveloper = 1 << 22,
|
||||
/**
|
||||
|
||||
@@ -75,8 +75,16 @@ export enum RESTJSONErrorCodes {
|
||||
|
||||
UnderMinimumAge = 20_024,
|
||||
|
||||
ChannelSendRateLimit = 20_028,
|
||||
ServerSendRateLimit,
|
||||
ChannelWriteRateLimit = 20_028,
|
||||
/**
|
||||
* @deprecated Use {@link RESTJSONErrorCodes.ChannelWriteRateLimit} instead
|
||||
*/
|
||||
ChannelSendRateLimit = ChannelWriteRateLimit,
|
||||
ServerWriteRateLimit = 20_029,
|
||||
/**
|
||||
* @deprecated Use {@link RESTJSONErrorCodes.ServerWriteRateLimit} instead
|
||||
*/
|
||||
ServerSendRateLimit = ServerWriteRateLimit,
|
||||
|
||||
StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords = 20_031,
|
||||
|
||||
@@ -301,6 +309,8 @@ export enum RESTJSONErrorCodes {
|
||||
MaximumActiveThreads,
|
||||
MaximumActiveAnnouncementThreads,
|
||||
|
||||
CannotForwardMessageWithUnreadableContent = 160_014,
|
||||
|
||||
InvalidJSONForUploadedLottieFile = 170_001,
|
||||
UploadedLottiesCannotContainRasterizedImages,
|
||||
StickerMaximumFramerateExceeded,
|
||||
|
||||
@@ -411,7 +411,13 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery {
|
||||
*/
|
||||
export enum ReactionType {
|
||||
Normal,
|
||||
Super,
|
||||
Burst,
|
||||
// eslint-disable @typescript-eslint/no-duplicate-enum-values
|
||||
/**
|
||||
* @deprecated Use {@link ReactionType.Burst} instead
|
||||
*/
|
||||
Super = Burst,
|
||||
// eslint-enable @typescript-eslint/no-duplicate-enum-values
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -746,6 +752,10 @@ export type RESTPostAPIGuildForumThreadsFormDataBody = RESTPostAPIChannelMessage
|
||||
* The initial message of the thread
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* The IDs of the set of tags to apply to the thread; limited to 5
|
||||
*/
|
||||
applied_tags?: Snowflake[] | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information}
|
||||
*/
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = Omit<APIApplication, 'flags'>;
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}
|
||||
|
||||
@@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody {
|
||||
/**
|
||||
* The recipient to open a DM channel with
|
||||
*/
|
||||
recipient_id: string;
|
||||
recipient_id: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -256,7 +256,7 @@ export type RESTGetAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: string;
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -309,6 +309,13 @@ export type RESTPatchAPIWebhookWithTokenMessageQuery = Pick<
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/webhook#delete-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTDeleteAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#delete-webhook-message}
|
||||
*/
|
||||
|
||||
@@ -418,7 +418,13 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery {
|
||||
*/
|
||||
export enum ReactionType {
|
||||
Normal,
|
||||
Super,
|
||||
Burst,
|
||||
// eslint-disable @typescript-eslint/no-duplicate-enum-values
|
||||
/**
|
||||
* @deprecated Use {@link ReactionType.Burst} instead
|
||||
*/
|
||||
Super = Burst,
|
||||
// eslint-enable @typescript-eslint/no-duplicate-enum-values
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -759,6 +765,10 @@ export type RESTPostAPIGuildForumThreadsFormDataBody = RESTPostAPIChannelMessage
|
||||
* The initial message of the thread
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* The IDs of the set of tags to apply to the thread; limited to 5
|
||||
*/
|
||||
applied_tags?: Snowflake[] | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information}
|
||||
*/
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = Omit<APIApplication, 'flags'>;
|
||||
export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}
|
||||
|
||||
@@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody {
|
||||
/**
|
||||
* The recipient to open a DM channel with
|
||||
*/
|
||||
recipient_id: string;
|
||||
recipient_id: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -256,7 +256,7 @@ export type RESTGetAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: string;
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -309,6 +309,13 @@ export type RESTPatchAPIWebhookWithTokenMessageQuery = Pick<
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageResult = APIMessage;
|
||||
|
||||
/**
|
||||
* @see {@link https://docs.discord.com/developers/resources/webhook#delete-webhook-message-query-string-params}
|
||||
*/
|
||||
export interface RESTDeleteAPIWebhookWithTokenMessageQuery {
|
||||
thread_id?: Snowflake;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#delete-webhook-message}
|
||||
*/
|
||||
|
||||
168
website/package-lock.json
generated
168
website/package-lock.json
generated
@@ -477,9 +477,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@apify/docusaurus-plugin-typedoc-api/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -5544,9 +5544,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/eslint-plugin-next/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -5753,9 +5753,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@npmcli/map-workspaces/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -5844,9 +5844,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@npmcli/package-json/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -7712,9 +7712,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -7890,9 +7890,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -8021,9 +8021,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -8188,9 +8188,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -9251,9 +9251,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
"version": "1.1.12",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
||||
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
||||
"version": "1.1.13",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz",
|
||||
"integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
@@ -13405,9 +13405,9 @@
|
||||
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
|
||||
},
|
||||
"node_modules/express/node_modules/path-to-regexp": {
|
||||
"version": "0.1.12",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="
|
||||
"version": "0.1.13",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
|
||||
"integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA=="
|
||||
},
|
||||
"node_modules/express/node_modules/qs": {
|
||||
"version": "6.14.2",
|
||||
@@ -13623,9 +13623,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/filelist/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -25183,9 +25183,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typedoc/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -25363,9 +25363,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript-eslint/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -25529,9 +25529,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/unified-engine/node_modules/brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -27754,9 +27754,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -30748,9 +30748,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -30892,9 +30892,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -30957,9 +30957,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32162,9 +32162,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32264,9 +32264,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32338,9 +32338,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32433,9 +32433,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -33220,9 +33220,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.12",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
||||
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
||||
"version": "1.1.13",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz",
|
||||
"integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==",
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
@@ -36009,9 +36009,9 @@
|
||||
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
|
||||
},
|
||||
"path-to-regexp": {
|
||||
"version": "0.1.12",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="
|
||||
"version": "0.1.13",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
|
||||
"integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA=="
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.14.2",
|
||||
@@ -36171,9 +36171,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -43487,9 +43487,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -43604,9 +43604,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -43724,9 +43724,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",
|
||||
"integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
|
||||
@@ -1 +1 @@
|
||||
[{"entryPoints":{"v10":{"path":"v10.ts","label":"API v10"},"v9":{"path":"v9.ts","label":"API v9"},"voice/v4":{"path":"voice/v4.ts","label":"Voice v4"},"voice/v8":{"path":"voice/v8.ts","label":"Voice v8"},"globals":{"path":"globals.ts","label":"Global Types"}},"packageRoot":"/home/runner/work/discord-api-types/discord-api-types/","packagePath":"./","packageSlug":"discord-api-types","packageName":"discord-api-types","packageVersion":"0.38.43"}]
|
||||
[{"entryPoints":{"v10":{"path":"v10.ts","label":"API v10"},"v9":{"path":"v9.ts","label":"API v9"},"voice/v4":{"path":"voice/v4.ts","label":"Voice v4"},"voice/v8":{"path":"voice/v8.ts","label":"Voice v8"},"globals":{"path":"globals.ts","label":"Global Types"}},"packageRoot":"/home/runner/work/discord-api-types/discord-api-types/","packagePath":"./","packageSlug":"discord-api-types","packageName":"discord-api-types","packageVersion":"0.38.47"}]
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
@@ -1,3 +1,3 @@
|
||||
[
|
||||
"0.38.43"
|
||||
"0.38.47"
|
||||
]
|
||||
Reference in New Issue
Block a user