Skip to content

Constants

typedef · Source

Constants that can be used in an enum or object-like way. Type: Object

Properties

ActivityTypes

ActivityTypes: Object<ActivityType, number>

The type of an activity of a users presence.

APIErrors

APIErrors: Object<APIError, number>

An error encountered while performing an API request.

ApplicationCommandOptionTypes

ApplicationCommandOptionTypes: Object<ApplicationCommandOptionType, number>

The type of an ApplicationCommandOption object.

ApplicationCommandPermissionTypes

ApplicationCommandPermissionTypes: Object<ApplicationCommandPermissionType, number>

The type of an ApplicationCommandPermissions object.

ApplicationCommandTypes

ApplicationCommandTypes: Object<ApplicationCommandType, number>

The type of an ApplicationCommand object.

ApplicationRoleConnectionMetadataTypes

ApplicationRoleConnectionMetadataTypes: Object<ApplicationRoleConnectionMetadataType, number>

The type of an ApplicationRoleConnectionMetadata object.

AutoModerationActionTypes

AutoModerationActionTypes: Object<AutoModerationActionType, number>

A type of an action which executes whenever a rule is triggered.

AutoModerationRuleEventTypes

AutoModerationRuleEventTypes: Object<AutoModerationRuleEventType, number>

Indicates in what event context a rule should be checked.

AutoModerationRuleKeywordPresetTypes

AutoModerationRuleKeywordPresetTypes: Object<AutoModerationRuleKeywordPresetType, number>

The internally pre-defined wordsetswhich will be searched for in content

AutoModerationRuleTriggerTypes

AutoModerationRuleTriggerTypes: Object<AutoModerationRuleTriggerType, number>

Characterizes the type of content which can trigger the rule.

ChannelTypes

ChannelTypes: Object<ChannelType, number>

All available channel types.

ChromiumMajorVersion

ChromiumMajorVersion: string

Chromium major version used by User-Agent Client Hints.

ChromiumVersion

ChromiumVersion: string

Chromium version used by the default HTTP browser profile.

ClientApplicationAssetTypes

ClientApplicationAssetTypes: ClientApplicationAssetTypes

The types of an ApplicationAsset object.

Colors

Colors: Object<Color, number>

An object with regularly used colors.

DefaultMessageNotificationLevels

DefaultMessageNotificationLevels: Object<DefaultMessageNotificationLevel, number>

The value set for a guilds default message notifications.

Endpoints

Endpoints: Endpoints

Object containing functions that return certain endpoints on the API.

Events

Events: Events

The types of events emitted by the Client.

ExplicitContentFilterLevels

ExplicitContentFilterLevels: Object<ExplicitContentFilterLevel, number>

The value set for the explicit content filter levels for a guild.

GuildScheduledEventEntityTypes

GuildScheduledEventEntityTypes: Object<GuildScheduledEventEntityType, number>

The entity type of a GuildScheduledEvent object.

GuildScheduledEventPrivacyLevels

GuildScheduledEventPrivacyLevels: Object<GuildScheduledEventPrivacyLevel, number>

Privacy level of a GuildScheduledEvent object.

GuildScheduledEventStatuses

GuildScheduledEventStatuses: Object<GuildScheduledEventStatus, number>

The status of a GuildScheduledEvent object.

IntegrationExpireBehaviors

IntegrationExpireBehaviors: Object<IntegrationExpireBehavior, number>

The behavior of expiring subscribers for Integrations.

InteractionResponseTypes

InteractionResponseTypes: Object<InteractionResponseType, number>

The type of an interaction response.

InteractionTypes

InteractionTypes: Object<InteractionType, number>

The type of an Interaction object.

InviteScopes

InviteScopes: Array<InviteScope>

The scopes of an invite.

RelationshipTypes

RelationshipTypes: Object<RelationshipType, number>

Relationship Enums

SeparatorSpacingSize

SeparatorSpacingSize: Object<SeparatorSpacingSize, number>

Size of separator padding (Enums)

MembershipStates

MembershipStates: Object<MembershipState, number>

The value set for a team members membership state.

MessageButtonStyles

MessageButtonStyles: Object<MessageButtonStyle, number>

The style of a message button.

MessageComponentTypes

MessageComponentTypes: Object<MessageComponentType, number>

The type of a message component.

MessageTypes

MessageTypes: Array<MessageType>

The type of a Message object.

MFALevels

MFALevels: Object<MFALevel, number>

The required MFA level for a guild.

NSFWLevels

NSFWLevels: Object<NSFWLevel, number>

NSFW level of a guild.

Opcodes

Opcodes: Opcodes

The types of Opcodes sent to the Gateway.

OverwriteTypes

OverwriteTypes: Object<OverwriteType, number>

An overwrite type.

Package

Package: Object

The package.json of the library.

PartialTypes

PartialTypes: Object<PartialType, PartialType>

The type of Structure allowed to be a partial.

PremiumTiers

PremiumTiers: Object<PremiumTier, number>

The premium tier (Server Boost level) of a guild.

PrivacyLevels

PrivacyLevels: Object<PrivacyLevel, number>

Privacy level of a StageInstance object.

ShardEvents

ShardEvents: ShardEvents

The type of events emitted by a Shard.

Status

Status: Status

The available statuses of the client.

SelectMenuComponentTypes

SelectMenuComponentTypes: Object<SelectMenuComponentType, number>

The type of any select menu.

StickerFormatTypes

StickerFormatTypes: Object<StickerFormatType, number>

The value set for a stickers format type.

StickerTypes

StickerTypes: Object<StickerType, number>

The value set for a stickers type.

SweeperKeys

SweeperKeys: Array<SweeperKey>

The name of an item to be swept in Sweepers.

SystemMessageTypes

SystemMessageTypes: Array<SystemMessageType>

The types of messages that are System.

TextInputStyles

TextInputStyles: Object<TextInputStyle, number>

The style of a text input component.

ThreadChannelTypes

ThreadChannelTypes: Array<ThreadChannelTypes>

The type of a ThreadChannel object.

UserAgent

UserAgent: string

The user agent used for requests.

VerificationLevels

VerificationLevels: Object<VerificationLevel, number>

The value set for the verification levels for a guild.

VideoQualityModes

VideoQualityModes: Object<VideoQualityMode, number>

The camera video quality mode for a VoiceChannel.

WebhookTypes

WebhookTypes: Object<WebhookType, number>

The value set for a webhooks type.

WSCodes

WSCodes: WSCodes

The types of WebSocket error codes.

WSEvents

WSEvents: Object<WSEventType, WSEventType>

The type of a WebSocket message event.

HolographicStyles

HolographicStyles: HolographicStyle

Holographic color values for role styling.

Unofficial software. Not affiliated with or supported by Discord.