D
D
Deleting Account2020-04-30 12:43:06
Bots
Deleting Account, 2020-04-30 12:43:06

Why are user tags displayed as plain text when sending a message via webhook ( @everyone @here works)?

I am writing a program. One of the things it does is send some stats from the game to the Discord channel via a webhook. But the problem is that in the message with the statistics, you need to mention some users using the "@" tags. If you mention all users or online users "@everyone", "@here", then everything works fine. But if you mention users, or users with a role (except for "@everyone" ), then plain text is displayed (to send a message via webhook, I use discord.py ). Someone faced this problem? If yes, please tell me what could be the problem and how to solve it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CatCatcher, 2020-04-30
@Andriy_Kosmenyuk

You need to mention by ID.
<@!user_id>- user
<@&role_id>mention - role mention

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question