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,nameandidgroup properties are present on theexecresult of this expressionChannel: RegExp
Regular expression for matching a channel mention
The
idgroup property is present on theexecresult of this expressionDefaultStyledTimestamp: RegExp
Regular expression for matching strictly default styled timestamps
The
timestampgroup property is present on theexecresult of this expressionEmoji: RegExp
Regular expression for matching a custom emoji, either static or animated
The
animated,nameandidgroup properties are present on theexecresult of this expressionRole: RegExp
Regular expression for matching a role mention
The
idgroup property is present on theexecresult of this expressionSlashCommand: RegExp
Regular expression for matching a application command mention
The
fullName(possibly includingname,subcommandOrGroupandsubcommand) andidgroup properties are present on theexecresult of this expressionStaticEmoji: RegExp
Regular expression for matching strictly a static custom emoji
The
nameandidgroup properties are present on theexecresult of this expressionStyledTimestamp: RegExp
Regular expression for matching strictly custom styled timestamps
The
timestampandstylegroup properties are present on theexecresult of this expressionTimestamp: RegExp
Regular expression for matching a timestamp, either default or custom styled
The
timestampandstylegroup properties are present on theexecresult of this expressionUser: RegExp
Regular expression for matching a user mention, strictly without a nickname
The
idgroup property is present on theexecresult of this expressionUserWithNickname: RegExp
Regular expression for matching a user mention, strictly with a nickname
The
idgroup property is present on theexecresult of this expressionUserWithOptionalNickname: RegExp
Regular expression for matching a user mention, with or without a nickname
The
idgroup property is present on theexecresult of this expression
https://discord.com/developers/docs/reference#snowflakes