discord-api-types/globals
Index
Type Aliases
Variables
Type Aliases
Snowflake
Variables
constFormattingPatterns
Type declaration
AnimatedEmoji: RegExp
Regular expression for matching strictly an animated custom emoji
The
animated
,name
andid
group properties are present on theexec
result of this expressionChannel: RegExp
Regular expression for matching a channel mention
The
id
group property is present on theexec
result of this expressionDefaultStyledTimestamp: RegExp
Regular expression for matching strictly default styled timestamps
The
timestamp
group property is present on theexec
result of this expressionEmoji: RegExp
Regular expression for matching a custom emoji, either static or animated
The
animated
,name
andid
group properties are present on theexec
result of this expressionGuildNavigation: RegExp
Regular expression for matching a guild navigation mention
The
type
group property is present on theexec
result of this expressionLinkedRole: RegExp
Regular expression for matching a linked role mention
The
id
group property is present on theexec
result of this expressionRole: RegExp
Regular expression for matching a role mention
The
id
group property is present on theexec
result of this expressionSlashCommand: RegExp
Regular expression for matching a application command mention
The
fullName
(possibly includingname
,subcommandOrGroup
andsubcommand
) andid
group properties are present on theexec
result of this expressionStaticEmoji: RegExp
Regular expression for matching strictly a static custom emoji
The
name
andid
group properties are present on theexec
result of this expressionStyledTimestamp: RegExp
Regular expression for matching strictly custom styled timestamps
The
timestamp
andstyle
group properties are present on theexec
result of this expressionTimestamp: RegExp
Regular expression for matching a timestamp, either default or custom styled
The
timestamp
andstyle
group properties are present on theexec
result of this expressionUser: RegExp
Regular expression for matching a user mention, strictly without a nickname
The
id
group property is present on theexec
result of this expressionUserWithNickname: RegExp
Regular expression for matching a user mention, strictly with a nickname
The
id
group property is present on theexec
result of this expressionUserWithOptionalNickname: RegExp
Regular expression for matching a user mention, with or without a nickname
The
id
group property is present on theexec
result of this expression
https://discord.com/developers/docs/reference#snowflakes