Skip to main content

Variable: ChannelMentionRegex

const ChannelMentionRegex: RegExp

Regex that can capture the ID in Discord Channel mentions

Raw

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

Remark

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

Source

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