Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discord_api_types/v8.ts

Up to date Discord API Typings, versioned by the API version
Go to Latest
import * as discordApiTypes from "https://deno.land/x/discord_api_types@0.37.45/v8.ts";

Enums

E
ActivityFlags
deprecated
E
ActivityPlatform
deprecated
E
ActivityType
deprecated
E
ApplicationFlags
deprecated
E
AuditLogEvent
deprecated
E
ButtonStyle
deprecated
E
ChannelType
deprecated
E
ComponentType
deprecated
E
EmbedType
deprecated
E
GatewayOpcodes
deprecated
E
GuildFeature
deprecated
E
GuildMFALevel
deprecated
E
GuildNSFWLevel
deprecated
E
GuildPremiumTier
deprecated
E
GuildWidgetStyle
deprecated
E
InteractionType
deprecated
E
InviteTargetType
deprecated
E
MessageFlags
deprecated
E
MessageType
deprecated
E
OAuth2Scopes
deprecated
E
OverwriteType
deprecated
E
StickerType
deprecated
E
TextInputStyle
deprecated
E
UserFlags
deprecated
E
UserPremiumType
deprecated
E
VideoQualityMode
deprecated
E
WebhookType
deprecated

Functions

A type-guard check for DM application command interactions

A type-guard check for guild application command interactions

A type-guard check for DM interactions

A type-guard check for guild interactions

A type-guard check for buttons that have a custom_id attached to them.

A type-guard check for buttons that have a url attached to them.

A type-guard check for DM message component interactions

A type-guard check for guild message component interactions

Interfaces

I
APIApplication
deprecated
I
APIAttachment
deprecated
I
APIAuditLog
deprecated
I
APIAuditLogEntry
deprecated
I
APIBan
deprecated
I
APIBaseComponent
deprecated
I
APIChannelBase
deprecated

This interface is used to allow easy extension for other channel types. While also allowing APIPartialChannel to be used without breaking.

I
APIConnection
deprecated
I
APIEmbed
deprecated
I
APIEmbedAuthor
deprecated
I
APIEmbedField
deprecated
I
APIEmbedFooter
deprecated
I
APIEmbedImage
deprecated
I
APIEmbedProvider
deprecated
I
APIEmbedVideo
deprecated
I
APIEmoji
deprecated
I
APIGatewayInfo
deprecated
I
APIGuild
deprecated
I
APIGuildChannel
deprecated
I
APIGuildMember
deprecated
I
APIGuildPreview
deprecated
I
APIGuildWidget
deprecated
I
APIInvite
deprecated
I
APIMessage
deprecated
I
APIOverwrite
deprecated

Not documented, but partial only includes id, name, and type

I
APIPartialEmoji
deprecated

Not documented but mentioned

I
APIPartialGuild
deprecated
I
APIReaction
deprecated
I
APIRole
deprecated
I
APIRoleTags
deprecated
I
APIStageInstance
deprecated
I
APISticker
deprecated
I
APIStickerPack
deprecated
I
APITeam
deprecated
I
APITeamMember
deprecated
I
APITemplate
deprecated
I
APITextChannel
deprecated
I
APIUser
deprecated
I
APIVoiceChannel
deprecated
I
APIVoiceRegion
deprecated
I
APIWebhook
deprecated
I
GatewayActivity
deprecated
I
GatewayHeartbeat
deprecated
I
GatewayHello
deprecated
I
GatewayHelloData
deprecated
I
GatewayIdentify
deprecated
I
GatewayReconnect
deprecated
I
GatewayResume
deprecated

Type Aliases

Returned when new role(s) are added

Returned when role(s) are removed

Returned when a guild's afk_channel_id is changed

Returned when a guild's afk_timeout is changed

Returned when an overwrite's allowed permissions bitfield is changed

The application ID of the added or removed Webhook or Bot

Empty string

Returned when a sticker's availability is changed

Returned when a user's avatar_hash is changed

Returned when a guild's banner hash is changed

Returned when a voice channel's bitrate is changed

Returned when an invite's or guild scheduled event's channel_id is changed

Returned when an invite's code is changed

Returned when a role's color is changed

Returned when a user's timeout is changed

Returned when a user's deaf status is changed

Returned when a guild's default_message_notifications is changed

Returned when an overwrite's denied permissions bitfield is changed

Returned when a guild's or sticker's or guild scheduled event's description is changed

Returned when a guild's discovery splash is changed

Returned when an integration's enable_emoticons is changed

Returned when entity type of a guild scheduled event is changed

Returned when an integration's expire_behavior is changed

Returned when an integration's expire_grace_period is changed

Returned when a guild's explicit_content_filter is changed

Returned when a sticker's format_type is changed

Returned when a sticker's guild_id is changed

Returned when a role's hoist status is changed

Returned when a guild's icon is changed

The ID of the changed entity - sometimes used in conjunction with other keys

Returned when an invite's inviter_id is changed

Returned when location of a guild scheduled event is changed

Returned when an invite's max_age is changed

Returned when an invite's max_uses is changed

Returned when a role's mentionable status is changed

Returned when a guild's mfa_level is changed

Returned when a user's mute status is changed

Returned when an entity's name is changed

Returned when a user's nick is changed

Returned when a channel's NSFW restriction is changed

Returned when a guild's owner_id is changed

Returned when a channel's permission overwrites is changed

Returned when a permission bitfield is changed

Returned when a channel's position is changed

Returned when a guild's preferred_locale is changed

Returned when privacy level of a stage instance or guild scheduled event is changed

Returned when there is a change in number of days after which inactive and role-unassigned members are kicked

Returned when a guild's public_updates_channel_id is changed

Returned when a channel's amount of seconds a user has to wait before sending another message is changed

Returned when a guild's region is changed

Returned when a guild's rules_channel_id is changed

Returned when a guild's splash is changed

Returned when status of a guild scheduled event is changed

Returned when a guild's system_channel_id is changed

Returned when a sticker's related emoji is changed

Returned when an invite's temporary status is changed

Returned when a channel's topic is changed

The type of entity created

Returned when a voice channel's user_limit is changed

Returned when an invite's uses is changed

Returned when a guild's vanity_url_code is changed

Returned when a guild's verification_level is changed

Returned when a guild's widget_channel_id is changed

Returned when a guild's widget is enabled

T
APIChannel
deprecated
T
APIDMChannel
deprecated
T
APIDMInteraction
deprecated
T
APIInteraction
deprecated
T
APINewsChannel
deprecated
T
APIStickerItem
deprecated
T
GuildChannelType
deprecated

Note: while the return type is ArrayBuffer, the expected result is a buffer of sorts (depends if in browser or on node.js/deno).

Received when a call to https://discord.com/developers/docs/resources/webhook#execute-webhook receives the wait query parameter set to true

Received when a call to https://discord.com/developers/docs/resources/webhook#execute-webhook receives the wait query parameter set to true

Received when a call to https://discord.com/developers/docs/resources/webhook#execute-webhook receives the wait query parameter set to true

T
TextChannelType
deprecated