Is there a way to mention a user (blue highlight) without actually pinging them?

Viewed 29785

Is there a way to mention a user in Discord without actually pinging them? I wouldn't want something like a role ping because you would have to delete the role, and when newer people view it, it would be seen as @deleted-role.

Also tried unicode and that didn't work. Checked other libraries, and nothing. I found a bot that could do it, but checking it's message.content showed nothing, and D.JS's v12 feature disableMentions only inserts a thin unicode character to break the mention, which results in something like <@id>, or <@(really_small_unicode_char)id> (@\u200b).

4 Answers

Yes, it is possible, see this.

Discord.JS just had their library updated at this Github commit. So now you can do something like this...

npm i github:discordjs/discord.js#df324e2c21171aa17bc4e43f4a36f78c2f0eaec1

message.channel.send('content', {"allowedMentions": { "users" : []}})

and no mentions.

You could send a message without the ping, then edit the ping in. That way, the user is mentioned but not pinged.

With python api you can use

await message.reply("message", allowed_mentions = discord.AllowedMentions(replied_user=False))
Related