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

x/discord_api_types/v6.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/v6.ts";

Enums

E
ActivityFlags
deprecated
E
ActivityType
deprecated
E
AuditLogEvent
deprecated
E
ChannelType
deprecated
E
EmbedType
deprecated
E
GatewayOPCodes
deprecated
E
GuildFeature
deprecated
E
GuildMFALevel
deprecated
E
GuildPremiumTier
deprecated
E
GuildWidgetStyle
deprecated
E
MessageFlags
deprecated
E
MessageType
deprecated
E
OverwriteType
deprecated
E
UserFlags
deprecated
E
UserPremiumType
deprecated
E
VoiceCloseCodes
deprecated
E
VoiceOPCodes
deprecated
E
WebhookType
deprecated

Interfaces

I
APIApplication
deprecated
I
APIAttachment
deprecated
I
APIAuditLog
deprecated

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

I
APIAuditLogEntry
deprecated
I
APIBan
deprecated
I
APIChannel
deprecated
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
APIGuildMember
deprecated
I
APIGuildPreview
deprecated
I
APIInvite
deprecated
I
APIMessage
deprecated
I
APIOverwrite
deprecated
I
APIOverwriteSend
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
APITeam
deprecated
I
APITeamMember
deprecated
I
APIUser
deprecated
I
APIVoiceRegion
deprecated
I
APIWebhook
deprecated
I
GatewayActivity
deprecated
I
GatewayHeartbeat
deprecated
I
GatewayHello
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

Returned when an overwrite's allowed permissions bitfield is changed

The application ID of the added or removed Webhook or Bot

Returned when a user's avatar_hash is changed

Returned when a voice channel's bitrate is changed

Returned when an invite'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 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 an overwrite's denied permissions bitfield is changed

Returned when an integration's enable_emoticons 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 role's hoist status is changed

Returned when a guild's icon is changed

Returned when an invite's inviter_id 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 a guild'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 permission bitfield is changed

Returned when a channel's position is changed

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

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 splash is changed

Returned when a guild's system_channel_id 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 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
APIGuildWidget
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 POST /webhooks/{webhook.id}/{webhook.token} receives the wait query parameter set to true