Skip to content

mention

const mention: object

Defined in: format.ts:12

Writes a mention for message text. A mention shows as a link to the user, role, channel or command. It pings nobody unless the message allows it with allowedMentions.

channel: (channel) => string

Id

string

command: (name, id) => string

string

string

string

role: (role) => string

Id

string

user: (user) => string

Id

string

c.reply(`${mention.user(c.interaction.member.user)} joined ${mention.channel('123')}`);