Role mention
Please help me set up role notifications. My bot does not notify the role when sending a message in the chat. It has the Administrator role.
15 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!1) thats not how you mention roles, use the <@&id> format
2)
You can control which entities receive notifications via the
allowedMentions
option. You can:
- Set a default on the client
- Set for a specific message
- Use the repliedUser
key to disable in-line reply mentions
I tried it this way, but the problem is not resolved. <@${roleId}> only outputs the numeric ID without notifying. There was a moment when it correctly displayed the role name, but the role itself was not notified.
Hey. You forgot &
<@&${roleId}>
Сути дела не меняет. Он выдаёт нужную роль, но упоминания самой роли, чтобы участник, имеющий данную роль получил пинг - не присутствует.
#rules 2
Can you send how you define your d.js client?
new Client(...
.
👍
Sorry, I forgot.
I'm just learning Node.js and unfortunately I don't quite understand what needs to be done in this message.
Maybe your bot don't have mention permission?
you need to provide that when replying, or set it in your client options
My bot has Administrator rights
Maybe you right. I haven't encountered this before