Skip to main content

Variable: UserOrMemberMentionRegex

const UserOrMemberMentionRegex: RegExp

Regex that can capture the ID of a user in Discord user mentions

Raw

/^<@!?(?<id>\d{17,20})>$/

Remark

Capture group 1 is the ID of the user. It is named id.

Source

node_modules/@sapphire/discord-utilities/dist/esm/index.d.mts:904