mention
constmention: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.
Type Declaration
Section titled “Type Declaration”channel
Section titled “channel”channel: (
channel) =>string
Parameters
Section titled “Parameters”channel
Section titled “channel”Returns
Section titled “Returns”string
command
Section titled “command”command: (
name,id) =>string
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”string
role: (
role) =>string
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string
user: (
user) =>string
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string
Example
Section titled “Example”c.reply(`${mention.user(c.interaction.member.user)} joined ${mention.channel('123')}`);