dfx 0.61.5 → 0.61.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cache/memoryTTL.d.ts.map +1 -1
- package/Cache/memoryTTL.js.map +1 -1
- package/Cache/prelude.d.ts +3 -3
- package/Cache/prelude.d.ts.map +1 -1
- package/Cache/prelude.js.map +1 -1
- package/Cache.d.ts.map +1 -1
- package/Cache.js.map +1 -1
- package/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
- package/DiscordGateway/Shard/heartbeats.js.map +1 -1
- package/DiscordGateway/Shard/sendEvents.js +9 -6
- package/DiscordGateway/Shard/sendEvents.js.map +1 -1
- package/DiscordGateway/Shard/utils.d.ts.map +1 -1
- package/DiscordGateway/Shard/utils.js.map +1 -1
- package/DiscordGateway/Shard.d.ts.map +1 -1
- package/DiscordGateway/Shard.js +8 -7
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/Sharder.d.ts +2 -2
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway/WS.d.ts.map +1 -1
- package/DiscordGateway/WS.js.map +1 -1
- package/DiscordGateway.d.ts +1 -1
- package/DiscordGateway.d.ts.map +1 -1
- package/DiscordGateway.js.map +1 -1
- package/DiscordREST/utils.d.ts.map +1 -1
- package/DiscordREST/utils.js.map +1 -1
- package/DiscordREST.d.ts +1 -1
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js.map +1 -1
- package/Helpers/flags.d.ts.map +1 -1
- package/Helpers/flags.js.map +1 -1
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/intents.js.map +1 -1
- package/Helpers/interactions.d.ts.map +1 -1
- package/Helpers/interactions.js +3 -2
- package/Helpers/interactions.js.map +1 -1
- package/Helpers/members.d.ts.map +1 -1
- package/Helpers/members.js.map +1 -1
- package/Helpers/permissions.js.map +1 -1
- package/Helpers/ui.js +12 -11
- package/Helpers/ui.js.map +1 -1
- package/Interactions/builder.d.ts.map +1 -1
- package/Interactions/builder.js.map +1 -1
- package/Interactions/context.d.ts.map +1 -1
- package/Interactions/context.js.map +1 -1
- package/Interactions/definitions.d.ts.map +1 -1
- package/Interactions/definitions.js.map +1 -1
- package/Interactions/gateway.d.ts +1 -1
- package/Interactions/gateway.d.ts.map +1 -1
- package/Interactions/gateway.js.map +1 -1
- package/Interactions/handlers.d.ts.map +1 -1
- package/Interactions/handlers.js +7 -7
- package/Interactions/handlers.js.map +1 -1
- package/Interactions/index.d.ts.map +1 -1
- package/Interactions/index.js.map +1 -1
- package/Interactions/utils.d.ts.map +1 -1
- package/Interactions/utils.js.map +1 -1
- package/Interactions/webhook.d.ts.map +1 -1
- package/Interactions/webhook.js.map +1 -1
- package/Log.js.map +1 -1
- package/RateLimit.d.ts.map +1 -1
- package/RateLimit.js.map +1 -1
- package/gateway.d.ts +1 -1
- package/mjs/Cache/memoryTTL.mjs.map +1 -1
- package/mjs/Cache/prelude.mjs.map +1 -1
- package/mjs/Cache.mjs.map +1 -1
- package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/sendEvents.mjs +7 -6
- package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/utils.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard.mjs +8 -7
- package/mjs/DiscordGateway/Shard.mjs.map +1 -1
- package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
- package/mjs/DiscordGateway/WS.mjs.map +1 -1
- package/mjs/DiscordGateway.mjs.map +1 -1
- package/mjs/DiscordREST/utils.mjs.map +1 -1
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/Helpers/flags.mjs.map +1 -1
- package/mjs/Helpers/intents.mjs.map +1 -1
- package/mjs/Helpers/interactions.mjs +3 -2
- package/mjs/Helpers/interactions.mjs.map +1 -1
- package/mjs/Helpers/members.mjs.map +1 -1
- package/mjs/Helpers/permissions.mjs.map +1 -1
- package/mjs/Helpers/ui.mjs +12 -11
- package/mjs/Helpers/ui.mjs.map +1 -1
- package/mjs/Interactions/builder.mjs.map +1 -1
- package/mjs/Interactions/context.mjs.map +1 -1
- package/mjs/Interactions/definitions.mjs.map +1 -1
- package/mjs/Interactions/gateway.mjs.map +1 -1
- package/mjs/Interactions/handlers.mjs +7 -7
- package/mjs/Interactions/handlers.mjs.map +1 -1
- package/mjs/Interactions/index.mjs.map +1 -1
- package/mjs/Interactions/utils.mjs.map +1 -1
- package/mjs/Interactions/webhook.mjs.map +1 -1
- package/mjs/Log.mjs.map +1 -1
- package/mjs/RateLimit.mjs.map +1 -1
- package/mjs/types.mjs +733 -9
- package/mjs/types.mjs.map +1 -1
- package/mjs/utils/Effect.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/mjs/webhooks.mjs.map +1 -1
- package/package.json +2 -2
- package/src/Cache/memoryTTL.ts +4 -6
- package/src/Cache/prelude.ts +13 -15
- package/src/Cache.ts +5 -2
- package/src/DiscordGateway/DiscordWS.ts +6 -5
- package/src/DiscordGateway/Shard/heartbeats.ts +2 -3
- package/src/DiscordGateway/Shard/utils.ts +10 -9
- package/src/DiscordGateway/Shard.ts +13 -12
- package/src/DiscordGateway/Sharder.ts +8 -8
- package/src/DiscordGateway/WS.ts +9 -6
- package/src/DiscordGateway.ts +9 -8
- package/src/DiscordREST/utils.ts +2 -4
- package/src/DiscordREST.ts +24 -26
- package/src/Helpers/flags.ts +4 -2
- package/src/Helpers/intents.ts +4 -3
- package/src/Helpers/interactions.ts +54 -51
- package/src/Helpers/members.ts +2 -2
- package/src/Helpers/permissions.ts +2 -2
- package/src/Interactions/builder.ts +18 -20
- package/src/Interactions/context.ts +31 -18
- package/src/Interactions/definitions.ts +36 -27
- package/src/Interactions/gateway.ts +85 -82
- package/src/Interactions/handlers.ts +35 -34
- package/src/Interactions/index.ts +20 -16
- package/src/Interactions/utils.ts +17 -13
- package/src/Interactions/webhook.ts +15 -19
- package/src/Log.ts +2 -2
- package/src/RateLimit.ts +4 -5
- package/src/types.ts +172 -188
- package/src/utils/Effect.ts +19 -21
- package/src/version.ts +1 -1
- package/src/webhooks.ts +1 -4
- package/types.d.ts +140 -132
- package/types.d.ts.map +1 -1
- package/types.js +784 -10
- package/types.js.map +1 -1
- package/utils/Effect.d.ts.map +1 -1
- package/utils/Effect.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/webhooks.d.ts +1 -1
- package/webhooks.d.ts.map +1 -1
- package/webhooks.js.map +1 -1
- package/tsconfig.tsbuildinfo +0 -1
package/src/types.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface ActionRow {
|
|
|
14
14
|
/** a list of child components */
|
|
15
15
|
readonly components: Array<Component>
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export enum ActionType {
|
|
18
18
|
/** blocks a member's message and prevents it from being posted. A custom explanation can be specified and shown to members whenever their message is blocked. */
|
|
19
19
|
BLOCK_MESSAGE = 1,
|
|
20
20
|
/** logs user content to a specified channel */
|
|
@@ -37,7 +37,7 @@ export interface Activity {
|
|
|
37
37
|
readonly application_id?: Snowflake
|
|
38
38
|
/** What the player is currently doing */
|
|
39
39
|
readonly details?: string | null
|
|
40
|
-
/** User's current party status */
|
|
40
|
+
/** User's current party status, or text used for a custom status */
|
|
41
41
|
readonly state?: string | null
|
|
42
42
|
/** Emoji used for a custom status */
|
|
43
43
|
readonly emoji?: ActivityEmoji | null
|
|
@@ -109,7 +109,7 @@ export interface ActivityTimestamp {
|
|
|
109
109
|
/** Unix time (in milliseconds) of when the activity ends */
|
|
110
110
|
readonly end?: number
|
|
111
111
|
}
|
|
112
|
-
export
|
|
112
|
+
export enum ActivityType {
|
|
113
113
|
GAME = 0,
|
|
114
114
|
STREAMING = 1,
|
|
115
115
|
LISTENING = 2,
|
|
@@ -139,7 +139,7 @@ export interface AllowedMention {
|
|
|
139
139
|
/** For replies, whether to mention the author of the message being replied to (default false) */
|
|
140
140
|
readonly replied_user: boolean
|
|
141
141
|
}
|
|
142
|
-
export
|
|
142
|
+
export enum AllowedMentionType {
|
|
143
143
|
/** Controls role mentions */
|
|
144
144
|
ROLE_MENTIONS = "roles",
|
|
145
145
|
/** Controls user mentions */
|
|
@@ -293,7 +293,7 @@ export interface ApplicationCommandOptionChoice {
|
|
|
293
293
|
/** Value for the choice, up to 100 characters if string */
|
|
294
294
|
readonly value: string
|
|
295
295
|
}
|
|
296
|
-
export
|
|
296
|
+
export enum ApplicationCommandOptionType {
|
|
297
297
|
SUB_COMMAND = 1,
|
|
298
298
|
SUB_COMMAND_GROUP = 2,
|
|
299
299
|
STRING = 3,
|
|
@@ -316,12 +316,12 @@ export interface ApplicationCommandPermission {
|
|
|
316
316
|
}
|
|
317
317
|
export type ApplicationCommandPermissionsUpdateEvent =
|
|
318
318
|
GuildApplicationCommandPermission
|
|
319
|
-
export
|
|
319
|
+
export enum ApplicationCommandPermissionType {
|
|
320
320
|
ROLE = 1,
|
|
321
321
|
USER = 2,
|
|
322
322
|
CHANNEL = 3,
|
|
323
323
|
}
|
|
324
|
-
export
|
|
324
|
+
export enum ApplicationCommandType {
|
|
325
325
|
/** Slash commands; a text-based command that shows up when a user types / */
|
|
326
326
|
CHAT_INPUT = 1,
|
|
327
327
|
/** A UI-based command that shows up when you right click or tap on a user */
|
|
@@ -359,7 +359,7 @@ export interface ApplicationRoleConnection {
|
|
|
359
359
|
/** object mapping application role connection metadata keys to their string-ified value (max 100 characters) for the user on the platform a bot has connected */
|
|
360
360
|
readonly metadata: ApplicationRoleConnectionMetadatum
|
|
361
361
|
}
|
|
362
|
-
export
|
|
362
|
+
export enum ApplicationRoleConnectionMetadataType {
|
|
363
363
|
/** the metadata value (integer) is less than or equal to the guild's configured value (integer) */
|
|
364
364
|
INTEGER_LESS_THAN_OR_EQUAL = 1,
|
|
365
365
|
/** the metadata value (integer) is greater than or equal to the guild's configured value (integer) */
|
|
@@ -446,6 +446,8 @@ export interface AuditEntryInfo {
|
|
|
446
446
|
readonly role_name: string
|
|
447
447
|
/** Type of overwritten entity - role ("0") or member ("1") */
|
|
448
448
|
readonly type: string
|
|
449
|
+
/** The type of integration which performed the action */
|
|
450
|
+
readonly integration_type: string
|
|
449
451
|
}
|
|
450
452
|
export interface AuditLog {
|
|
451
453
|
/** List of application commands referenced in the audit log */
|
|
@@ -489,7 +491,7 @@ export interface AuditLogEntry {
|
|
|
489
491
|
/** Reason for the change (1-512 characters) */
|
|
490
492
|
readonly reason?: string
|
|
491
493
|
}
|
|
492
|
-
export
|
|
494
|
+
export enum AuditLogEvent {
|
|
493
495
|
/** Server settings were updated */
|
|
494
496
|
GUILD_UPDATE = 1,
|
|
495
497
|
/** Channel was created */
|
|
@@ -720,7 +722,7 @@ export interface Button {
|
|
|
720
722
|
/** Whether the button is disabled (defaults to false) */
|
|
721
723
|
readonly disabled?: boolean
|
|
722
724
|
}
|
|
723
|
-
export
|
|
725
|
+
export enum ButtonStyle {
|
|
724
726
|
PRIMARY = 1,
|
|
725
727
|
SECONDARY = 2,
|
|
726
728
|
SUCCESS = 3,
|
|
@@ -740,11 +742,11 @@ export interface Channel {
|
|
|
740
742
|
readonly permission_overwrites?: Array<Overwrite>
|
|
741
743
|
/** the name of the channel (1-100 characters) */
|
|
742
744
|
readonly name?: string | null
|
|
743
|
-
/** the channel topic (0-4096 characters for GUILD_FORUM channels, 0-1024 characters for all others) */
|
|
745
|
+
/** the channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels, 0-1024 characters for all others) */
|
|
744
746
|
readonly topic?: string | null
|
|
745
747
|
/** whether the channel is nsfw */
|
|
746
748
|
readonly nsfw?: boolean
|
|
747
|
-
/** the id of the last message sent in this channel (or thread for GUILD_FORUM channels) (may not point to an existing or valid message or thread) */
|
|
749
|
+
/** the id of the last message sent in this channel (or thread for GUILD_FORUM or GUILD_MEDIA channels) (may not point to an existing or valid message or thread) */
|
|
748
750
|
readonly last_message_id?: Snowflake | null
|
|
749
751
|
/** the bitrate (in bits) of the voice channel */
|
|
750
752
|
readonly bitrate?: number
|
|
@@ -780,21 +782,21 @@ export interface Channel {
|
|
|
780
782
|
readonly member?: ThreadMember
|
|
781
783
|
/** default duration, copied onto newly created threads, in minutes, threads will stop showing in the channel list after the specified period of inactivity, can be set to: 60, 1440, 4320, 10080 */
|
|
782
784
|
readonly default_auto_archive_duration?: number
|
|
783
|
-
/** computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a slash command interaction */
|
|
785
|
+
/** computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a slash command interaction. This does not include implicit permissions, which may need to be checked separately */
|
|
784
786
|
readonly permissions?: string
|
|
785
787
|
/** channel flags combined as a bitfield */
|
|
786
788
|
readonly flags?: number
|
|
787
789
|
/** number of messages ever sent in a thread, it's similar to message_count on message creation, but will not decrement the number when a message is deleted */
|
|
788
790
|
readonly total_message_sent?: number
|
|
789
|
-
/** the set of tags that can be used in a GUILD_FORUM channel */
|
|
791
|
+
/** the set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
790
792
|
readonly available_tags?: Array<ForumTag>
|
|
791
|
-
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
|
|
793
|
+
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
792
794
|
readonly applied_tags?: Array<Snowflake>
|
|
793
|
-
/** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
|
|
795
|
+
/** the emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
794
796
|
readonly default_reaction_emoji?: DefaultReaction | null
|
|
795
797
|
/** the initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. */
|
|
796
798
|
readonly default_thread_rate_limit_per_user?: number
|
|
797
|
-
/** the default sort order type used to order posts in GUILD_FORUM channels. Defaults to null, which indicates a preferred sort order hasn't been set by a channel admin */
|
|
799
|
+
/** the default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels. Defaults to null, which indicates a preferred sort order hasn't been set by a channel admin */
|
|
798
800
|
readonly default_sort_order?: SortOrderType | null
|
|
799
801
|
/** the default forum layout view used to display posts in GUILD_FORUM channels. Defaults to 0, which indicates a layout view has not been set by a channel admin */
|
|
800
802
|
readonly default_forum_layout?: ForumLayoutType
|
|
@@ -802,10 +804,12 @@ export interface Channel {
|
|
|
802
804
|
export type ChannelCreateEvent = Channel
|
|
803
805
|
export type ChannelDeleteEvent = Channel
|
|
804
806
|
export const ChannelFlag = {
|
|
805
|
-
/** this thread is pinned to the top of its parent GUILD_FORUM channel */
|
|
807
|
+
/** this thread is pinned to the top of its parent GUILD_FORUM or GUILD_MEDIA channel */
|
|
806
808
|
PINNED: 1 << 1,
|
|
807
|
-
/** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
|
|
809
|
+
/** whether a tag is required to be specified when creating a thread in a GUILD_FORUM or a GUILD_MEDIA channel. Tags are specified in the applied_tags field. */
|
|
808
810
|
REQUIRE_TAG: 1 << 4,
|
|
811
|
+
/** when set hides the embedded media download options. Available only for media channels */
|
|
812
|
+
HIDE_MEDIA_DOWNLOAD_OPTIONS: 1 << 15,
|
|
809
813
|
} as const
|
|
810
814
|
export interface ChannelMention {
|
|
811
815
|
/** id of the channel */
|
|
@@ -825,7 +829,7 @@ export interface ChannelPinsUpdateEvent {
|
|
|
825
829
|
/** Time at which the most recent pinned message was pinned */
|
|
826
830
|
readonly last_pin_timestamp?: string | null
|
|
827
831
|
}
|
|
828
|
-
export
|
|
832
|
+
export enum ChannelType {
|
|
829
833
|
/** a text channel within a server */
|
|
830
834
|
GUILD_TEXT = 0,
|
|
831
835
|
/** a direct message between users */
|
|
@@ -850,6 +854,8 @@ export const enum ChannelType {
|
|
|
850
854
|
GUILD_DIRECTORY = 14,
|
|
851
855
|
/** Channel that can only contain threads */
|
|
852
856
|
GUILD_FORUM = 15,
|
|
857
|
+
/** Channel that can only contain threads, similar to GUILD_FORUM channels */
|
|
858
|
+
GUILD_MEDIA = 16,
|
|
853
859
|
}
|
|
854
860
|
export type ChannelUpdateEvent = Channel
|
|
855
861
|
export interface ClientStatus {
|
|
@@ -861,7 +867,7 @@ export interface ClientStatus {
|
|
|
861
867
|
readonly web?: string
|
|
862
868
|
}
|
|
863
869
|
export type Component = ActionRow | Button | TextInput | SelectMenu
|
|
864
|
-
export
|
|
870
|
+
export enum ComponentType {
|
|
865
871
|
/** Container for other components */
|
|
866
872
|
ACTION_ROW = 1,
|
|
867
873
|
/** Button object */
|
|
@@ -1020,11 +1026,11 @@ export interface CreateGuildChannelParams {
|
|
|
1020
1026
|
readonly video_quality_mode: VideoQualityMode
|
|
1021
1027
|
/** the default duration that the clients use (not the API) for newly created threads in the channel, in minutes, to automatically archive the thread after recent activity */
|
|
1022
1028
|
readonly default_auto_archive_duration: number
|
|
1023
|
-
/** emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
|
|
1029
|
+
/** emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
1024
1030
|
readonly default_reaction_emoji: DefaultReaction
|
|
1025
|
-
/** set of tags that can be used in a GUILD_FORUM channel */
|
|
1031
|
+
/** set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
1026
1032
|
readonly available_tags: Array<ForumTag>
|
|
1027
|
-
/** the default sort order type used to order posts in GUILD_FORUM channels */
|
|
1033
|
+
/** the default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels */
|
|
1028
1034
|
readonly default_sort_order: SortOrderType
|
|
1029
1035
|
/** the default forum layout view used to display posts in GUILD_FORUM channels */
|
|
1030
1036
|
readonly default_forum_layout: ForumLayoutType
|
|
@@ -1173,8 +1179,7 @@ export function createRoutes<O = any>(
|
|
|
1173
1179
|
batchEditApplicationCommandPermissions: (applicationId, guildId, options) =>
|
|
1174
1180
|
fetch({
|
|
1175
1181
|
method: "PUT",
|
|
1176
|
-
url:
|
|
1177
|
-
`/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
1182
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
1178
1183
|
options,
|
|
1179
1184
|
}),
|
|
1180
1185
|
beginGuildPrune: (guildId, params, options) =>
|
|
@@ -1343,8 +1348,7 @@ export function createRoutes<O = any>(
|
|
|
1343
1348
|
createReaction: (channelId, messageId, emoji, options) =>
|
|
1344
1349
|
fetch({
|
|
1345
1350
|
method: "PUT",
|
|
1346
|
-
url:
|
|
1347
|
-
`/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
1351
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
1348
1352
|
options,
|
|
1349
1353
|
}),
|
|
1350
1354
|
createStageInstance: (params, options) =>
|
|
@@ -1405,8 +1409,7 @@ export function createRoutes<O = any>(
|
|
|
1405
1409
|
) =>
|
|
1406
1410
|
fetch({
|
|
1407
1411
|
method: "DELETE",
|
|
1408
|
-
url:
|
|
1409
|
-
`/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
1412
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
1410
1413
|
options,
|
|
1411
1414
|
}),
|
|
1412
1415
|
deleteGlobalApplicationCommand: (applicationId, commandId, options) =>
|
|
@@ -1429,8 +1432,7 @@ export function createRoutes<O = any>(
|
|
|
1429
1432
|
) =>
|
|
1430
1433
|
fetch({
|
|
1431
1434
|
method: "DELETE",
|
|
1432
|
-
url:
|
|
1433
|
-
`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
1435
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
1434
1436
|
options,
|
|
1435
1437
|
}),
|
|
1436
1438
|
deleteGuildEmoji: (guildId, emojiId, options) =>
|
|
@@ -1488,15 +1490,13 @@ export function createRoutes<O = any>(
|
|
|
1488
1490
|
) =>
|
|
1489
1491
|
fetch({
|
|
1490
1492
|
method: "DELETE",
|
|
1491
|
-
url:
|
|
1492
|
-
`/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
1493
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
1493
1494
|
options,
|
|
1494
1495
|
}),
|
|
1495
1496
|
deleteOwnReaction: (channelId, messageId, emoji, options) =>
|
|
1496
1497
|
fetch({
|
|
1497
1498
|
method: "DELETE",
|
|
1498
|
-
url:
|
|
1499
|
-
`/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
1499
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
1500
1500
|
options,
|
|
1501
1501
|
}),
|
|
1502
1502
|
deleteStageInstance: (channelId, options) =>
|
|
@@ -1508,8 +1508,7 @@ export function createRoutes<O = any>(
|
|
|
1508
1508
|
deleteUserReaction: (channelId, messageId, emoji, userId, options) =>
|
|
1509
1509
|
fetch({
|
|
1510
1510
|
method: "DELETE",
|
|
1511
|
-
url:
|
|
1512
|
-
`/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
|
|
1511
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
|
|
1513
1512
|
options,
|
|
1514
1513
|
}),
|
|
1515
1514
|
deleteWebhook: (webhookId, options) =>
|
|
@@ -1546,8 +1545,7 @@ export function createRoutes<O = any>(
|
|
|
1546
1545
|
) =>
|
|
1547
1546
|
fetch({
|
|
1548
1547
|
method: "PUT",
|
|
1549
|
-
url:
|
|
1550
|
-
`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
1548
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
1551
1549
|
params,
|
|
1552
1550
|
options,
|
|
1553
1551
|
}),
|
|
@@ -1567,8 +1565,7 @@ export function createRoutes<O = any>(
|
|
|
1567
1565
|
) =>
|
|
1568
1566
|
fetch({
|
|
1569
1567
|
method: "PATCH",
|
|
1570
|
-
url:
|
|
1571
|
-
`/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
1568
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
1572
1569
|
params,
|
|
1573
1570
|
options,
|
|
1574
1571
|
}),
|
|
@@ -1588,8 +1585,7 @@ export function createRoutes<O = any>(
|
|
|
1588
1585
|
) =>
|
|
1589
1586
|
fetch({
|
|
1590
1587
|
method: "PATCH",
|
|
1591
|
-
url:
|
|
1592
|
-
`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
1588
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
1593
1589
|
params,
|
|
1594
1590
|
options,
|
|
1595
1591
|
}),
|
|
@@ -1608,8 +1604,7 @@ export function createRoutes<O = any>(
|
|
|
1608
1604
|
) =>
|
|
1609
1605
|
fetch({
|
|
1610
1606
|
method: "PATCH",
|
|
1611
|
-
url:
|
|
1612
|
-
`/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
1607
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
1613
1608
|
params,
|
|
1614
1609
|
options,
|
|
1615
1610
|
}),
|
|
@@ -1654,8 +1649,7 @@ export function createRoutes<O = any>(
|
|
|
1654
1649
|
) =>
|
|
1655
1650
|
fetch({
|
|
1656
1651
|
method: "GET",
|
|
1657
|
-
url:
|
|
1658
|
-
`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
1652
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
1659
1653
|
options,
|
|
1660
1654
|
}),
|
|
1661
1655
|
getApplicationRoleConnectionMetadataRecords: (applicationId, options) =>
|
|
@@ -1747,8 +1741,7 @@ export function createRoutes<O = any>(
|
|
|
1747
1741
|
) =>
|
|
1748
1742
|
fetch({
|
|
1749
1743
|
method: "GET",
|
|
1750
|
-
url:
|
|
1751
|
-
`/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
1744
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
1752
1745
|
params,
|
|
1753
1746
|
options,
|
|
1754
1747
|
}),
|
|
@@ -1787,15 +1780,13 @@ export function createRoutes<O = any>(
|
|
|
1787
1780
|
getGuildApplicationCommand: (applicationId, guildId, commandId, options) =>
|
|
1788
1781
|
fetch({
|
|
1789
1782
|
method: "GET",
|
|
1790
|
-
url:
|
|
1791
|
-
`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
1783
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
1792
1784
|
options,
|
|
1793
1785
|
}),
|
|
1794
1786
|
getGuildApplicationCommandPermissions: (applicationId, guildId, options) =>
|
|
1795
1787
|
fetch({
|
|
1796
1788
|
method: "GET",
|
|
1797
|
-
url:
|
|
1798
|
-
`/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
1789
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
1799
1790
|
options,
|
|
1800
1791
|
}),
|
|
1801
1792
|
getGuildApplicationCommands: (applicationId, guildId, params, options) =>
|
|
@@ -1895,8 +1886,7 @@ export function createRoutes<O = any>(
|
|
|
1895
1886
|
) =>
|
|
1896
1887
|
fetch({
|
|
1897
1888
|
method: "GET",
|
|
1898
|
-
url:
|
|
1899
|
-
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
|
|
1889
|
+
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
|
|
1900
1890
|
params,
|
|
1901
1891
|
options,
|
|
1902
1892
|
}),
|
|
@@ -1976,8 +1966,7 @@ export function createRoutes<O = any>(
|
|
|
1976
1966
|
) =>
|
|
1977
1967
|
fetch({
|
|
1978
1968
|
method: "GET",
|
|
1979
|
-
url:
|
|
1980
|
-
`/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
1969
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
1981
1970
|
params,
|
|
1982
1971
|
options,
|
|
1983
1972
|
}),
|
|
@@ -2119,12 +2108,6 @@ export function createRoutes<O = any>(
|
|
|
2119
2108
|
params,
|
|
2120
2109
|
options,
|
|
2121
2110
|
}),
|
|
2122
|
-
listNitroStickerPacks: options =>
|
|
2123
|
-
fetch({
|
|
2124
|
-
method: "GET",
|
|
2125
|
-
url: `/sticker-packs`,
|
|
2126
|
-
options,
|
|
2127
|
-
}),
|
|
2128
2111
|
listPrivateArchivedThreads: (channelId, params, options) =>
|
|
2129
2112
|
fetch({
|
|
2130
2113
|
method: "GET",
|
|
@@ -2146,6 +2129,12 @@ export function createRoutes<O = any>(
|
|
|
2146
2129
|
params,
|
|
2147
2130
|
options,
|
|
2148
2131
|
}),
|
|
2132
|
+
listStickerPacks: options =>
|
|
2133
|
+
fetch({
|
|
2134
|
+
method: "GET",
|
|
2135
|
+
url: `/sticker-packs`,
|
|
2136
|
+
options,
|
|
2137
|
+
}),
|
|
2149
2138
|
listThreadMembers: (channelId, params, options) =>
|
|
2150
2139
|
fetch({
|
|
2151
2140
|
method: "GET",
|
|
@@ -2372,7 +2361,7 @@ export function createRoutes<O = any>(
|
|
|
2372
2361
|
params,
|
|
2373
2362
|
options,
|
|
2374
2363
|
}),
|
|
2375
|
-
|
|
2364
|
+
startThreadInForumOrMediaChannel: (channelId, params, options) =>
|
|
2376
2365
|
fetch({
|
|
2377
2366
|
method: "POST",
|
|
2378
2367
|
url: `/channels/${channelId}/threads`,
|
|
@@ -2435,7 +2424,7 @@ export interface CreateWebhookParams {
|
|
|
2435
2424
|
/** image for the default webhook avatar */
|
|
2436
2425
|
readonly avatar?: string | null
|
|
2437
2426
|
}
|
|
2438
|
-
export
|
|
2427
|
+
export enum DefaultMessageNotificationLevel {
|
|
2439
2428
|
/** members will receive notifications for all messages by default */
|
|
2440
2429
|
ALL_MESSAGES = 0,
|
|
2441
2430
|
/** members will receive notifications only for messages that @mention them by default */
|
|
@@ -2615,7 +2604,7 @@ export interface EmbedThumbnail {
|
|
|
2615
2604
|
/** width of thumbnail */
|
|
2616
2605
|
readonly width?: number
|
|
2617
2606
|
}
|
|
2618
|
-
export
|
|
2607
|
+
export enum EmbedType {
|
|
2619
2608
|
/** generic embed rendered from embed attributes */
|
|
2620
2609
|
RICH = "rich",
|
|
2621
2610
|
/** image embed */
|
|
@@ -3394,8 +3383,6 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3394
3383
|
params?: Partial<ListJoinedPrivateArchivedThreadParams>,
|
|
3395
3384
|
options?: O,
|
|
3396
3385
|
) => RestResponse<ListJoinedPrivateArchivedThreadResponse>
|
|
3397
|
-
/** Returns the list of sticker packs available to Nitro subscribers. */
|
|
3398
|
-
listNitroStickerPacks: (options?: O) => RestResponse<any>
|
|
3399
3386
|
/** Returns archived threads in the channel that are of type PRIVATE_THREAD. Threads are ordered by archive_timestamp, in descending order. Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions. */
|
|
3400
3387
|
listPrivateArchivedThreads: (
|
|
3401
3388
|
channelId: string,
|
|
@@ -3414,6 +3401,8 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3414
3401
|
params?: Partial<ListScheduledEventsForGuildParams>,
|
|
3415
3402
|
options?: O,
|
|
3416
3403
|
) => RestResponse<Array<GuildScheduledEvent>>
|
|
3404
|
+
/** Returns a list of available sticker packs. */
|
|
3405
|
+
listStickerPacks: (options?: O) => RestResponse<any>
|
|
3417
3406
|
listThreadMembers: (
|
|
3418
3407
|
channelId: string,
|
|
3419
3408
|
params?: Partial<ListThreadMemberParams>,
|
|
@@ -3608,10 +3597,10 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3608
3597
|
params?: Partial<StartThreadFromMessageParams>,
|
|
3609
3598
|
options?: O,
|
|
3610
3599
|
) => RestResponse<Channel>
|
|
3611
|
-
/** Creates a new thread in a forum channel, and sends a message within the created thread. Returns a channel, with a nested message object, on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create and Message Create Gateway event. */
|
|
3612
|
-
|
|
3600
|
+
/** Creates a new thread in a forum or a media channel, and sends a message within the created thread. Returns a channel, with a nested message object, on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create and Message Create Gateway event. */
|
|
3601
|
+
startThreadInForumOrMediaChannel: (
|
|
3613
3602
|
channelId: string,
|
|
3614
|
-
params?: Partial<
|
|
3603
|
+
params?: Partial<StartThreadInForumOrMediaChannelParams>,
|
|
3615
3604
|
options?: O,
|
|
3616
3605
|
) => RestResponse<Channel>
|
|
3617
3606
|
/** Creates a new thread that is not connected to an existing message. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create Gateway event. */
|
|
@@ -3646,7 +3635,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3646
3635
|
options?: O,
|
|
3647
3636
|
) => RestResponse<ApplicationRoleConnection>
|
|
3648
3637
|
}
|
|
3649
|
-
export
|
|
3638
|
+
export enum EventType {
|
|
3650
3639
|
/** when a member sends or edits a message in the guild */
|
|
3651
3640
|
MESSAGE_SEND = 1,
|
|
3652
3641
|
}
|
|
@@ -3676,7 +3665,7 @@ export interface ExecuteWebhookParams {
|
|
|
3676
3665
|
/** name of thread to create (requires the webhook channel to be a forum channel) */
|
|
3677
3666
|
readonly thread_name: string
|
|
3678
3667
|
}
|
|
3679
|
-
export
|
|
3668
|
+
export enum ExplicitContentFilterLevel {
|
|
3680
3669
|
/** media content will not be scanned */
|
|
3681
3670
|
DISABLED = 0,
|
|
3682
3671
|
/** media content sent by members without roles will be scanned */
|
|
@@ -3694,27 +3683,7 @@ export interface FollowedChannel {
|
|
|
3694
3683
|
/** created target webhook id */
|
|
3695
3684
|
readonly webhook_id: Snowflake
|
|
3696
3685
|
}
|
|
3697
|
-
export
|
|
3698
|
-
/** No default has been set for forum channel */
|
|
3699
|
-
NOT_SET = 0,
|
|
3700
|
-
/** Display posts as a list */
|
|
3701
|
-
LIST_VIEW = 1,
|
|
3702
|
-
/** Display posts as a collection of tiles */
|
|
3703
|
-
GALLERY_VIEW = 2,
|
|
3704
|
-
}
|
|
3705
|
-
export interface ForumTag {
|
|
3706
|
-
/** the id of the tag */
|
|
3707
|
-
readonly id: Snowflake
|
|
3708
|
-
/** the name of the tag (0-20 characters) */
|
|
3709
|
-
readonly name: string
|
|
3710
|
-
/** whether this tag can only be added to or removed from threads by a member with the MANAGE_THREADS permission */
|
|
3711
|
-
readonly moderated: boolean
|
|
3712
|
-
/** the id of a guild's custom emoji * */
|
|
3713
|
-
readonly emoji_id?: Snowflake | null
|
|
3714
|
-
/** the unicode character of the emoji * */
|
|
3715
|
-
readonly emoji_name?: string | null
|
|
3716
|
-
}
|
|
3717
|
-
export interface ForumThreadMessageParam {
|
|
3686
|
+
export interface ForumAndMediaThreadMessageParam {
|
|
3718
3687
|
/** Message contents (up to 2000 characters) */
|
|
3719
3688
|
readonly content?: string
|
|
3720
3689
|
/** Up to 10 rich embeds (up to 6000 characters) */
|
|
@@ -3734,6 +3703,26 @@ export interface ForumThreadMessageParam {
|
|
|
3734
3703
|
/** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
|
|
3735
3704
|
readonly flags?: number
|
|
3736
3705
|
}
|
|
3706
|
+
export enum ForumLayoutType {
|
|
3707
|
+
/** No default has been set for forum channel */
|
|
3708
|
+
NOT_SET = 0,
|
|
3709
|
+
/** Display posts as a list */
|
|
3710
|
+
LIST_VIEW = 1,
|
|
3711
|
+
/** Display posts as a collection of tiles */
|
|
3712
|
+
GALLERY_VIEW = 2,
|
|
3713
|
+
}
|
|
3714
|
+
export interface ForumTag {
|
|
3715
|
+
/** the id of the tag */
|
|
3716
|
+
readonly id: Snowflake
|
|
3717
|
+
/** the name of the tag (0-20 characters) */
|
|
3718
|
+
readonly name: string
|
|
3719
|
+
/** whether this tag can only be added to or removed from threads by a member with the MANAGE_THREADS permission */
|
|
3720
|
+
readonly moderated: boolean
|
|
3721
|
+
/** the id of a guild's custom emoji * */
|
|
3722
|
+
readonly emoji_id?: Snowflake | null
|
|
3723
|
+
/** the unicode character of the emoji * */
|
|
3724
|
+
readonly emoji_name?: string | null
|
|
3725
|
+
}
|
|
3737
3726
|
export const GatewayIntents = {
|
|
3738
3727
|
GUILDS: 1 << 0,
|
|
3739
3728
|
GUILD_MEMBERS: 1 << 1,
|
|
@@ -3755,7 +3744,7 @@ export const GatewayIntents = {
|
|
|
3755
3744
|
AUTO_MODERATION_CONFIGURATION: 1 << 20,
|
|
3756
3745
|
AUTO_MODERATION_EXECUTION: 1 << 21,
|
|
3757
3746
|
} as const
|
|
3758
|
-
export
|
|
3747
|
+
export enum GatewayOpcode {
|
|
3759
3748
|
/** An event was dispatched. */
|
|
3760
3749
|
DISPATCH = 0,
|
|
3761
3750
|
/** Fired periodically by the client to keep the connection alive. */
|
|
@@ -3936,7 +3925,7 @@ export interface Guild {
|
|
|
3936
3925
|
readonly owner?: boolean
|
|
3937
3926
|
/** id of owner */
|
|
3938
3927
|
readonly owner_id: Snowflake
|
|
3939
|
-
/** total permissions for the user in the guild (excludes overwrites) */
|
|
3928
|
+
/** total permissions for the user in the guild (excludes overwrites and implicit permissions) */
|
|
3940
3929
|
readonly permissions?: string
|
|
3941
3930
|
/** voice region id for the guild (deprecated) */
|
|
3942
3931
|
readonly region?: string | null
|
|
@@ -4062,7 +4051,7 @@ export interface GuildEmojisUpdateEvent {
|
|
|
4062
4051
|
/** Array of emojis */
|
|
4063
4052
|
readonly emojis: Array<Emoji>
|
|
4064
4053
|
}
|
|
4065
|
-
export
|
|
4054
|
+
export enum GuildFeature {
|
|
4066
4055
|
/** guild has access to set an animated guild banner image */
|
|
4067
4056
|
ANIMATED_BANNER = "ANIMATED_BANNER",
|
|
4068
4057
|
/** guild has access to set an animated guild icon */
|
|
@@ -4104,8 +4093,7 @@ export const enum GuildFeature {
|
|
|
4104
4093
|
/** guild is able to set role icons */
|
|
4105
4094
|
ROLE_ICONS = "ROLE_ICONS",
|
|
4106
4095
|
/** guild has role subscriptions that can be purchased */
|
|
4107
|
-
ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE =
|
|
4108
|
-
"ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE",
|
|
4096
|
+
ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE",
|
|
4109
4097
|
/** guild has enabled role subscriptions */
|
|
4110
4098
|
ROLE_SUBSCRIPTIONS_ENABLED = "ROLE_SUBSCRIPTIONS_ENABLED",
|
|
4111
4099
|
/** guild has enabled ticketed events */
|
|
@@ -4210,7 +4198,7 @@ export interface GuildMemberUpdateEvent {
|
|
|
4210
4198
|
/** When the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out */
|
|
4211
4199
|
readonly communication_disabled_until?: string | null
|
|
4212
4200
|
}
|
|
4213
|
-
export
|
|
4201
|
+
export enum GuildNsfwLevel {
|
|
4214
4202
|
DEFAULT = 0,
|
|
4215
4203
|
EXPLICIT = 1,
|
|
4216
4204
|
SAFE = 2,
|
|
@@ -4310,16 +4298,16 @@ export interface GuildScheduledEventEntityMetadatum {
|
|
|
4310
4298
|
/** location of the event (1-100 characters) */
|
|
4311
4299
|
readonly location?: string
|
|
4312
4300
|
}
|
|
4313
|
-
export
|
|
4301
|
+
export enum GuildScheduledEventEntityType {
|
|
4314
4302
|
STAGE_INSTANCE = 1,
|
|
4315
4303
|
VOICE = 2,
|
|
4316
4304
|
EXTERNAL = 3,
|
|
4317
4305
|
}
|
|
4318
|
-
export
|
|
4306
|
+
export enum GuildScheduledEventPrivacyLevel {
|
|
4319
4307
|
/** the scheduled event is only accessible to guild members */
|
|
4320
4308
|
GUILD_ONLY = 2,
|
|
4321
4309
|
}
|
|
4322
|
-
export
|
|
4310
|
+
export enum GuildScheduledEventStatus {
|
|
4323
4311
|
SCHEDULED = 1,
|
|
4324
4312
|
ACTIVE = 2,
|
|
4325
4313
|
COMPLETED = 3,
|
|
@@ -4488,9 +4476,8 @@ export interface IntegrationApplication {
|
|
|
4488
4476
|
/** the bot associated with this application */
|
|
4489
4477
|
readonly bot?: User
|
|
4490
4478
|
}
|
|
4491
|
-
export type IntegrationCreateEvent =
|
|
4492
|
-
|
|
4493
|
-
& IntegrationCreateEventAdditional
|
|
4479
|
+
export type IntegrationCreateEvent = Integration &
|
|
4480
|
+
IntegrationCreateEventAdditional
|
|
4494
4481
|
export interface IntegrationCreateEventAdditional {
|
|
4495
4482
|
/** ID of the guild */
|
|
4496
4483
|
readonly guild_id: Snowflake
|
|
@@ -4503,13 +4490,12 @@ export interface IntegrationDeleteEvent {
|
|
|
4503
4490
|
/** ID of the bot/OAuth2 application for this discord integration */
|
|
4504
4491
|
readonly application_id?: Snowflake
|
|
4505
4492
|
}
|
|
4506
|
-
export
|
|
4493
|
+
export enum IntegrationExpireBehavior {
|
|
4507
4494
|
REMOVE_ROLE = 0,
|
|
4508
4495
|
KICK = 1,
|
|
4509
4496
|
}
|
|
4510
|
-
export type IntegrationUpdateEvent =
|
|
4511
|
-
|
|
4512
|
-
& IntegrationUpdateEventAdditional
|
|
4497
|
+
export type IntegrationUpdateEvent = Integration &
|
|
4498
|
+
IntegrationUpdateEventAdditional
|
|
4513
4499
|
export interface IntegrationUpdateEventAdditional {
|
|
4514
4500
|
/** ID of the guild */
|
|
4515
4501
|
readonly guild_id: Snowflake
|
|
@@ -4578,7 +4564,7 @@ export interface InteractionCallbackModal {
|
|
|
4578
4564
|
/** between 1 and 5 (inclusive) components that make up the modal */
|
|
4579
4565
|
readonly components: Array<Component>
|
|
4580
4566
|
}
|
|
4581
|
-
export
|
|
4567
|
+
export enum InteractionCallbackType {
|
|
4582
4568
|
/** ACK a Ping */
|
|
4583
4569
|
PONG = 1,
|
|
4584
4570
|
/** respond to an interaction with a message */
|
|
@@ -4605,7 +4591,7 @@ export interface InteractionResponse {
|
|
|
4605
4591
|
/** an optional response message */
|
|
4606
4592
|
readonly data?: InteractionCallbackDatum
|
|
4607
4593
|
}
|
|
4608
|
-
export
|
|
4594
|
+
export enum InteractionType {
|
|
4609
4595
|
PING = 1,
|
|
4610
4596
|
APPLICATION_COMMAND = 2,
|
|
4611
4597
|
MESSAGE_COMPONENT = 3,
|
|
@@ -4695,11 +4681,11 @@ export interface InviteStageInstance {
|
|
|
4695
4681
|
/** the topic of the Stage instance (1-120 characters) */
|
|
4696
4682
|
readonly topic: string
|
|
4697
4683
|
}
|
|
4698
|
-
export
|
|
4684
|
+
export enum InviteTargetType {
|
|
4699
4685
|
STREAM = 1,
|
|
4700
4686
|
EMBEDDED_APPLICATION = 2,
|
|
4701
4687
|
}
|
|
4702
|
-
export
|
|
4688
|
+
export enum KeywordPresetType {
|
|
4703
4689
|
/** words that may be considered forms of swearing or cursing */
|
|
4704
4690
|
PROFANITY = 1,
|
|
4705
4691
|
/** words that refer to sexually explicit behavior or activity */
|
|
@@ -4835,7 +4821,7 @@ export interface Locale {
|
|
|
4835
4821
|
/** Korean */
|
|
4836
4822
|
readonly ko?: string
|
|
4837
4823
|
}
|
|
4838
|
-
export
|
|
4824
|
+
export enum MembershipState {
|
|
4839
4825
|
INVITED = 1,
|
|
4840
4826
|
ACCEPTED = 2,
|
|
4841
4827
|
}
|
|
@@ -4909,7 +4895,7 @@ export interface MessageActivity {
|
|
|
4909
4895
|
/** party_id from a Rich Presence event */
|
|
4910
4896
|
readonly party_id?: string
|
|
4911
4897
|
}
|
|
4912
|
-
export
|
|
4898
|
+
export enum MessageActivityType {
|
|
4913
4899
|
JOIN = 1,
|
|
4914
4900
|
SPECTATE = 2,
|
|
4915
4901
|
LISTEN = 3,
|
|
@@ -5040,7 +5026,7 @@ export interface MessageReference {
|
|
|
5040
5026
|
/** when sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */
|
|
5041
5027
|
readonly fail_if_not_exists?: boolean
|
|
5042
5028
|
}
|
|
5043
|
-
export
|
|
5029
|
+
export enum MessageType {
|
|
5044
5030
|
DEFAULT = 0,
|
|
5045
5031
|
RECIPIENT_ADD = 1,
|
|
5046
5032
|
RECIPIENT_REMOVE = 2,
|
|
@@ -5074,7 +5060,7 @@ export const enum MessageType {
|
|
|
5074
5060
|
GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32,
|
|
5075
5061
|
}
|
|
5076
5062
|
export type MessageUpdateEvent = MessageCreateEvent
|
|
5077
|
-
export
|
|
5063
|
+
export enum MfaLevel {
|
|
5078
5064
|
/** guild has no MFA/2FA requirement for moderation actions */
|
|
5079
5065
|
NONE = 0,
|
|
5080
5066
|
/** guild has a 2FA requirement for moderation actions */
|
|
@@ -5115,7 +5101,7 @@ export interface ModifyChannelGuildChannelParams {
|
|
|
5115
5101
|
readonly type: ChannelType
|
|
5116
5102
|
/** the position of the channel in the left-hand listing */
|
|
5117
5103
|
readonly position?: number | null
|
|
5118
|
-
/** 0-1024 character channel topic (0-4096 characters for GUILD_FORUM channels) */
|
|
5104
|
+
/** 0-1024 character channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels) */
|
|
5119
5105
|
readonly topic?: string | null
|
|
5120
5106
|
/** whether the channel is nsfw */
|
|
5121
5107
|
readonly nsfw?: boolean | null
|
|
@@ -5135,15 +5121,15 @@ export interface ModifyChannelGuildChannelParams {
|
|
|
5135
5121
|
readonly video_quality_mode?: VideoQualityMode | null
|
|
5136
5122
|
/** the default duration that the clients use (not the API) for newly created threads in the channel, in minutes, to automatically archive the thread after recent activity */
|
|
5137
5123
|
readonly default_auto_archive_duration?: number | null
|
|
5138
|
-
/** channel flags combined as a bitfield. Currently only REQUIRE_TAG (1 << 4) is supported. */
|
|
5124
|
+
/** channel flags combined as a bitfield. Currently only REQUIRE_TAG (1 << 4) is supported by GUILD_FORUM and GUILD_MEDIA channels. HIDE_MEDIA_DOWNLOAD_OPTIONS (1 << 15) is supported only by GUILD_MEDIA channels */
|
|
5139
5125
|
readonly flags?: number
|
|
5140
|
-
/** the set of tags that can be used in a GUILD_FORUM channel; limited to 20 */
|
|
5126
|
+
/** the set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel; limited to 20 */
|
|
5141
5127
|
readonly available_tags?: Array<ForumTag>
|
|
5142
|
-
/** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
|
|
5128
|
+
/** the emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
5143
5129
|
readonly default_reaction_emoji?: DefaultReaction | null
|
|
5144
5130
|
/** the initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. */
|
|
5145
5131
|
readonly default_thread_rate_limit_per_user?: number
|
|
5146
|
-
/** the default sort order type used to order posts in GUILD_FORUM channels */
|
|
5132
|
+
/** the default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels */
|
|
5147
5133
|
readonly default_sort_order?: SortOrderType | null
|
|
5148
5134
|
/** the default forum layout type used to display posts in GUILD_FORUM channels */
|
|
5149
5135
|
readonly default_forum_layout?: ForumLayoutType
|
|
@@ -5165,9 +5151,9 @@ export interface ModifyChannelThreadParams {
|
|
|
5165
5151
|
readonly invitable: boolean
|
|
5166
5152
|
/** amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages, manage_thread, or manage_channel, are unaffected */
|
|
5167
5153
|
readonly rate_limit_per_user?: number | null
|
|
5168
|
-
/** channel flags combined as a bitfield; PINNED can only be set for threads in forum channels */
|
|
5154
|
+
/** channel flags combined as a bitfield; PINNED can only be set for threads in forum and media channels */
|
|
5169
5155
|
readonly flags?: number
|
|
5170
|
-
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel; limited to 5 */
|
|
5156
|
+
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel; limited to 5 */
|
|
5171
5157
|
readonly applied_tags?: Array<Snowflake>
|
|
5172
5158
|
}
|
|
5173
5159
|
export interface ModifyCurrentMemberParams {
|
|
@@ -5246,9 +5232,7 @@ export interface ModifyGuildParams {
|
|
|
5246
5232
|
/** verification level */
|
|
5247
5233
|
readonly verification_level?: VerificationLevel | null
|
|
5248
5234
|
/** default message notification level */
|
|
5249
|
-
readonly default_message_notifications?:
|
|
5250
|
-
| DefaultMessageNotificationLevel
|
|
5251
|
-
| null
|
|
5235
|
+
readonly default_message_notifications?: DefaultMessageNotificationLevel | null
|
|
5252
5236
|
/** explicit content filter level */
|
|
5253
5237
|
readonly explicit_content_filter?: ExplicitContentFilterLevel | null
|
|
5254
5238
|
/** id for afk channel */
|
|
@@ -5370,13 +5354,13 @@ export interface ModifyWebhookParams {
|
|
|
5370
5354
|
/** the new channel id this webhook should be moved to */
|
|
5371
5355
|
readonly channel_id: Snowflake
|
|
5372
5356
|
}
|
|
5373
|
-
export
|
|
5357
|
+
export enum MutableGuildFeature {
|
|
5374
5358
|
COMMUNITY = "COMMUNITY",
|
|
5375
5359
|
DISCOVERABLE = "DISCOVERABLE",
|
|
5376
5360
|
INVITES_DISABLED = "INVITES_DISABLED",
|
|
5377
5361
|
RAID_ALERTS_DISABLED = "RAID_ALERTS_DISABLED",
|
|
5378
5362
|
}
|
|
5379
|
-
export
|
|
5363
|
+
export enum OAuth2Scope {
|
|
5380
5364
|
/** allows your app to fetch data from a user's "Now Playing/Recently Played" list — not currently available for apps */
|
|
5381
5365
|
ACTIVITIES_READ = "activities.read",
|
|
5382
5366
|
/** allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) */
|
|
@@ -5390,8 +5374,7 @@ export const enum OAuth2Scope {
|
|
|
5390
5374
|
/** allows your app to update its commands using a Bearer token - client credentials grant only */
|
|
5391
5375
|
APPLICATIONS_COMMANDS_UPDATE = "applications.commands.update",
|
|
5392
5376
|
/** allows your app to update permissions for its commands in a guild a user has permissions to */
|
|
5393
|
-
APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE =
|
|
5394
|
-
"applications.commands.permissions.update",
|
|
5377
|
+
APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE = "applications.commands.permissions.update",
|
|
5395
5378
|
/** allows your app to read entitlements for a user's applications */
|
|
5396
5379
|
APPLICATIONS_ENTITLEMENTS = "applications.entitlements",
|
|
5397
5380
|
/** allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications */
|
|
@@ -5435,7 +5418,7 @@ export const enum OAuth2Scope {
|
|
|
5435
5418
|
/** this generates a webhook that is returned in the oauth token response for authorization code grants */
|
|
5436
5419
|
WEBHOOK_INCOMING = "webhook.incoming",
|
|
5437
5420
|
}
|
|
5438
|
-
export
|
|
5421
|
+
export enum OnboardingMode {
|
|
5439
5422
|
/** Counts only Default Channels towards constraints */
|
|
5440
5423
|
ONBOARDING_DEFAULT = 0,
|
|
5441
5424
|
/** Counts Default Channels and Questions towards constraints */
|
|
@@ -5559,7 +5542,7 @@ export const PermissionFlag = {
|
|
|
5559
5542
|
/** Allows sending voice messages */
|
|
5560
5543
|
SEND_VOICE_MESSAGES: BigInt(1) << BigInt(46),
|
|
5561
5544
|
} as const
|
|
5562
|
-
export
|
|
5545
|
+
export enum PremiumTier {
|
|
5563
5546
|
/** guild has not unlocked any Server Boost perks */
|
|
5564
5547
|
NONE = 0,
|
|
5565
5548
|
/** guild has unlocked Server Boost level 1 perks */
|
|
@@ -5569,7 +5552,7 @@ export const enum PremiumTier {
|
|
|
5569
5552
|
/** guild has unlocked Server Boost level 3 perks */
|
|
5570
5553
|
TIER_3 = 3,
|
|
5571
5554
|
}
|
|
5572
|
-
export
|
|
5555
|
+
export enum PremiumType {
|
|
5573
5556
|
NONE = 0,
|
|
5574
5557
|
NITRO_CLASSIC = 1,
|
|
5575
5558
|
NITRO = 2,
|
|
@@ -5587,7 +5570,7 @@ export interface PresenceUpdateEvent {
|
|
|
5587
5570
|
/** User's platform-dependent status */
|
|
5588
5571
|
readonly client_status: ClientStatus
|
|
5589
5572
|
}
|
|
5590
|
-
export
|
|
5573
|
+
export enum PrivacyLevel {
|
|
5591
5574
|
/** The Stage instance is visible publicly. (deprecated) */
|
|
5592
5575
|
PUBLIC = 1,
|
|
5593
5576
|
/** The Stage instance is visible to only guild members. */
|
|
@@ -5607,17 +5590,29 @@ export interface PromptOption {
|
|
|
5607
5590
|
/** Description of the option */
|
|
5608
5591
|
readonly description?: string | null
|
|
5609
5592
|
}
|
|
5610
|
-
export
|
|
5593
|
+
export enum PromptType {
|
|
5611
5594
|
MULTIPLE_CHOICE = 0,
|
|
5612
5595
|
DROPDOWN = 1,
|
|
5613
5596
|
}
|
|
5614
5597
|
export interface Reaction {
|
|
5615
|
-
/** times this emoji has been used to react */
|
|
5598
|
+
/** Total number of times this emoji has been used to react (including super reacts) */
|
|
5616
5599
|
readonly count: number
|
|
5617
|
-
/**
|
|
5600
|
+
/** Reaction count details object */
|
|
5601
|
+
readonly count_details: ReactionCountDetail
|
|
5602
|
+
/** Whether the current user reacted using this emoji */
|
|
5618
5603
|
readonly me: boolean
|
|
5604
|
+
/** Whether the current user super-reacted using this emoji */
|
|
5605
|
+
readonly me_burst: boolean
|
|
5619
5606
|
/** emoji information */
|
|
5620
5607
|
readonly emoji: Emoji
|
|
5608
|
+
/** HEX colors used for super reaction */
|
|
5609
|
+
readonly burst_colors: Array<any>
|
|
5610
|
+
}
|
|
5611
|
+
export interface ReactionCountDetail {
|
|
5612
|
+
/** Count of super reactions */
|
|
5613
|
+
readonly burst: number
|
|
5614
|
+
/** Count of normal reactions */
|
|
5615
|
+
readonly normal: number
|
|
5621
5616
|
}
|
|
5622
5617
|
export interface ReadyEvent {
|
|
5623
5618
|
/** API version */
|
|
@@ -5706,8 +5701,7 @@ export interface ReceiveEvents {
|
|
|
5706
5701
|
RESUMED: ResumedEvent
|
|
5707
5702
|
RECONNECT: ReconnectEvent
|
|
5708
5703
|
INVALID_SESSION: InvalidSessionEvent
|
|
5709
|
-
APPLICATION_COMMAND_PERMISSIONS_UPDATE:
|
|
5710
|
-
ApplicationCommandPermissionsUpdateEvent
|
|
5704
|
+
APPLICATION_COMMAND_PERMISSIONS_UPDATE: ApplicationCommandPermissionsUpdateEvent
|
|
5711
5705
|
AUTO_MODERATION_RULE_CREATE: AutoModerationRuleCreateEvent
|
|
5712
5706
|
AUTO_MODERATION_RULE_UPDATE: AutoModerationRuleUpdateEvent
|
|
5713
5707
|
AUTO_MODERATION_RULE_DELETE: AutoModerationRuleDeleteEvent
|
|
@@ -5945,7 +5939,7 @@ export interface SessionStartLimit {
|
|
|
5945
5939
|
readonly max_concurrency: number
|
|
5946
5940
|
}
|
|
5947
5941
|
export type Snowflake = `${bigint}`
|
|
5948
|
-
export
|
|
5942
|
+
export enum SortOrderType {
|
|
5949
5943
|
/** Sort forum posts by activity */
|
|
5950
5944
|
LATEST_ACTIVITY = 0,
|
|
5951
5945
|
/** Sort forum posts by creation time (from most recent to oldest) */
|
|
@@ -5978,36 +5972,16 @@ export interface StartThreadFromMessageParams {
|
|
|
5978
5972
|
/** amount of seconds a user has to wait before sending another message (0-21600) */
|
|
5979
5973
|
readonly rate_limit_per_user?: number | null
|
|
5980
5974
|
}
|
|
5981
|
-
export interface
|
|
5982
|
-
/** Message contents (up to 2000 characters) */
|
|
5983
|
-
readonly content?: string
|
|
5984
|
-
/** Up to 10 rich embeds (up to 6000 characters) */
|
|
5985
|
-
readonly embeds?: Array<Embed>
|
|
5986
|
-
/** Allowed mentions for the message */
|
|
5987
|
-
readonly allowed_mentions?: AllowedMention
|
|
5988
|
-
/** Components to include with the message */
|
|
5989
|
-
readonly components?: Array<Component>
|
|
5990
|
-
/** IDs of up to 3 stickers in the server to send in the message */
|
|
5991
|
-
readonly sticker_ids?: Array<Snowflake>
|
|
5992
|
-
/** Contents of the file being sent. See Uploading Files */
|
|
5993
|
-
readonly files: string
|
|
5994
|
-
/** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
|
|
5995
|
-
readonly payload_json?: string
|
|
5996
|
-
/** Attachment objects with filename and description. See Uploading Files */
|
|
5997
|
-
readonly attachments?: Array<Attachment>
|
|
5998
|
-
/** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
|
|
5999
|
-
readonly flags?: number
|
|
6000
|
-
}
|
|
6001
|
-
export interface StartThreadInForumChannelParams {
|
|
5975
|
+
export interface StartThreadInForumOrMediaChannelParams {
|
|
6002
5976
|
/** 1-100 character channel name */
|
|
6003
5977
|
readonly name: string
|
|
6004
5978
|
/** duration in minutes to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080 */
|
|
6005
5979
|
readonly auto_archive_duration?: number
|
|
6006
5980
|
/** amount of seconds a user has to wait before sending another message (0-21600) */
|
|
6007
5981
|
readonly rate_limit_per_user?: number | null
|
|
6008
|
-
/** contents of the first message in the forum thread */
|
|
6009
|
-
readonly message:
|
|
6010
|
-
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
|
|
5982
|
+
/** contents of the first message in the forum/media thread */
|
|
5983
|
+
readonly message: Message
|
|
5984
|
+
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
6011
5985
|
readonly applied_tags?: Array<Snowflake>
|
|
6012
5986
|
}
|
|
6013
5987
|
export interface StartThreadWithoutMessageParams {
|
|
@@ -6022,7 +5996,7 @@ export interface StartThreadWithoutMessageParams {
|
|
|
6022
5996
|
/** amount of seconds a user has to wait before sending another message (0-21600) */
|
|
6023
5997
|
readonly rate_limit_per_user?: number | null
|
|
6024
5998
|
}
|
|
6025
|
-
export
|
|
5999
|
+
export enum StatusType {
|
|
6026
6000
|
/** Online */
|
|
6027
6001
|
ONLINE = "online",
|
|
6028
6002
|
/** Do Not Disturb */
|
|
@@ -6060,7 +6034,7 @@ export interface Sticker {
|
|
|
6060
6034
|
/** the standard sticker's sort order within its pack */
|
|
6061
6035
|
readonly sort_value?: number
|
|
6062
6036
|
}
|
|
6063
|
-
export
|
|
6037
|
+
export enum StickerFormatType {
|
|
6064
6038
|
PNG = 1,
|
|
6065
6039
|
APNG = 2,
|
|
6066
6040
|
LOTTIE = 3,
|
|
@@ -6090,8 +6064,8 @@ export interface StickerPack {
|
|
|
6090
6064
|
/** id of the sticker pack's banner image */
|
|
6091
6065
|
readonly banner_asset_id?: Snowflake
|
|
6092
6066
|
}
|
|
6093
|
-
export
|
|
6094
|
-
/** an official sticker in a pack
|
|
6067
|
+
export enum StickerType {
|
|
6068
|
+
/** an official sticker in a pack */
|
|
6095
6069
|
STANDARD = 1,
|
|
6096
6070
|
/** a sticker uploaded to a guild for the guild's members */
|
|
6097
6071
|
GUILD = 2,
|
|
@@ -6111,26 +6085,36 @@ export const SystemChannelFlag = {
|
|
|
6111
6085
|
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5,
|
|
6112
6086
|
} as const
|
|
6113
6087
|
export interface Team {
|
|
6114
|
-
/**
|
|
6088
|
+
/** Hash of the image of the team's icon */
|
|
6115
6089
|
readonly icon?: string | null
|
|
6116
|
-
/**
|
|
6090
|
+
/** Unique ID of the team */
|
|
6117
6091
|
readonly id: Snowflake
|
|
6118
|
-
/**
|
|
6092
|
+
/** Members of the team */
|
|
6119
6093
|
readonly members: Array<TeamMember>
|
|
6120
|
-
/**
|
|
6094
|
+
/** Name of the team */
|
|
6121
6095
|
readonly name: string
|
|
6122
|
-
/**
|
|
6096
|
+
/** User ID of the current team owner */
|
|
6123
6097
|
readonly owner_user_id: Snowflake
|
|
6124
6098
|
}
|
|
6125
6099
|
export interface TeamMember {
|
|
6126
|
-
/**
|
|
6100
|
+
/** User's membership state on the team */
|
|
6127
6101
|
readonly membership_state: MembershipState
|
|
6128
|
-
/**
|
|
6129
|
-
readonly permissions: Array<string>
|
|
6130
|
-
/** the id of the parent team of which they are a member */
|
|
6102
|
+
/** ID of the parent team of which they are a member */
|
|
6131
6103
|
readonly team_id: Snowflake
|
|
6132
|
-
/**
|
|
6104
|
+
/** Avatar, discriminator, ID, and username of the user */
|
|
6133
6105
|
readonly user: User
|
|
6106
|
+
/** Role of the team member */
|
|
6107
|
+
readonly role: TeamMemberRoleType
|
|
6108
|
+
}
|
|
6109
|
+
export enum TeamMemberRoleType {
|
|
6110
|
+
/** Owners are the most permissiable role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
|
|
6111
|
+
OWNER = "",
|
|
6112
|
+
/** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
|
|
6113
|
+
ADMIN = "admin",
|
|
6114
|
+
/** Developers can access information about team-owned apps, like the client secret or public key. They can also take limited actions on team-owned apps, like configuring interaction endpoints or resetting the bot token. Members with the Developer role cannot manage the team or its members, or take destructive actions on team-owned apps. */
|
|
6115
|
+
DEVELOPER = "developer",
|
|
6116
|
+
/** Read-only members can access information about a team and any team-owned apps. Some examples include getting the IDs of applications and exporting payout records. */
|
|
6117
|
+
READONLY = "read_only",
|
|
6134
6118
|
}
|
|
6135
6119
|
export interface TextInput {
|
|
6136
6120
|
/** 4 for a text input */
|
|
@@ -6152,7 +6136,7 @@ export interface TextInput {
|
|
|
6152
6136
|
/** Custom placeholder text if the input is empty; max 100 characters */
|
|
6153
6137
|
readonly placeholder?: string
|
|
6154
6138
|
}
|
|
6155
|
-
export
|
|
6139
|
+
export enum TextInputStyle {
|
|
6156
6140
|
/** Single-line input */
|
|
6157
6141
|
SHORT = 1,
|
|
6158
6142
|
/** Multi-line input */
|
|
@@ -6228,7 +6212,7 @@ export interface TriggerMetadatum {
|
|
|
6228
6212
|
/** MENTION_SPAM */
|
|
6229
6213
|
readonly mention_raid_protection_enabled: boolean
|
|
6230
6214
|
}
|
|
6231
|
-
export
|
|
6215
|
+
export enum TriggerType {
|
|
6232
6216
|
/** check if content contains words from a user defined list of keywords */
|
|
6233
6217
|
KEYWORD = 1,
|
|
6234
6218
|
/** check if content represents generic spam */
|
|
@@ -6353,7 +6337,7 @@ export const UserFlag = {
|
|
|
6353
6337
|
ACTIVE_DEVELOPER: 1 << 22,
|
|
6354
6338
|
} as const
|
|
6355
6339
|
export type UserUpdateEvent = User
|
|
6356
|
-
export
|
|
6340
|
+
export enum VerificationLevel {
|
|
6357
6341
|
/** unrestricted */
|
|
6358
6342
|
NONE = 0,
|
|
6359
6343
|
/** must have verified email on account */
|
|
@@ -6365,19 +6349,19 @@ export const enum VerificationLevel {
|
|
|
6365
6349
|
/** must have a verified phone number */
|
|
6366
6350
|
VERY_HIGH = 4,
|
|
6367
6351
|
}
|
|
6368
|
-
export
|
|
6352
|
+
export enum VideoQualityMode {
|
|
6369
6353
|
/** Discord chooses the quality for optimal performance */
|
|
6370
6354
|
AUTO = 1,
|
|
6371
6355
|
/** 720p */
|
|
6372
6356
|
FULL = 2,
|
|
6373
6357
|
}
|
|
6374
|
-
export
|
|
6358
|
+
export enum VisibilityType {
|
|
6375
6359
|
/** invisible to everyone except the user themselves */
|
|
6376
6360
|
NONE = 0,
|
|
6377
6361
|
/** visible to everyone */
|
|
6378
6362
|
EVERYONE = 1,
|
|
6379
6363
|
}
|
|
6380
|
-
export
|
|
6364
|
+
export enum VoiceOpcode {
|
|
6381
6365
|
/** Begin a voice websocket connection. */
|
|
6382
6366
|
IDENTIFY = 0,
|
|
6383
6367
|
/** Select the voice protocol. */
|
|
@@ -6482,7 +6466,7 @@ export interface WebhooksUpdateEvent {
|
|
|
6482
6466
|
/** ID of the channel */
|
|
6483
6467
|
readonly channel_id: Snowflake
|
|
6484
6468
|
}
|
|
6485
|
-
export
|
|
6469
|
+
export enum WebhookType {
|
|
6486
6470
|
/** Incoming Webhooks can post messages to channels with a generated token */
|
|
6487
6471
|
INCOMING = 1,
|
|
6488
6472
|
/** Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels */
|