Skip to content
Variables noMentionMessage

$noMentionMessage

The function $noMentionMessage returns the message content by replacing all mentions with their plain text equivalents.

Syntax

bdfd
$noMentionMessage

Syntax

$noMentionMessage

Parameters

None.

Return Value

  • Type : String
  • The message with mentions converted.

Behavior

  • <@userID> → @username
  • <#channelID> → #channel-name
  • <@&roleID> → @role-name
  • Prevents unwanted pings in logs or relayed messages.

Examples

Logging without pinging

$var[logChannel;123456789]
$title[📋 New Message]
$description[
**Author:** $username
**Content:** $noMentionMessage
]
$channelSendMessage[$var[logChannel];]

Secure say command

$sendMessage[$noMentionMessage]

Relaying a message

$title[Relayed message from $username]
$description[$noMentionMessage]
$footer[From <#$channelID>]
$channelSendMessage[123456789;]

Notes

  • $noMentionMessage prevents the bot from accidentally pinging users.
  • Unlike $message, mentions are resolved to names.
  • To completely disable mentions, combine with $suppressMentions.