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.
No description
15 Replies
d.js toolkit
d.js toolkit5d ago
- 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!
treble/luna
treble/luna5d ago
1) thats not how you mention roles, use the <@&id> format 2)
d.js docs
d.js docs5d ago
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
{ ..., allowedMentions: { parse: ["users", "roles"] } }
{ ..., allowedMentions: { parse: ["users", "roles"] } }
RLodka
RLodkaOP5d ago
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.
No description
Булочка | pasha_boez
Hey. You forgot & <@&${roleId}>
RLodka
RLodkaOP5d ago
Сути дела не меняет. Он выдаёт нужную роль, но упоминания самой роли, чтобы участник, имеющий данную роль получил пинг - не присутствует.
No description
Булочка | pasha_boez
#rules 2 Can you send how you define your d.js client? new Client(...
treble/luna
treble/luna5d ago
.
RLodka
RLodkaOP5d ago
Sorry, I forgot.
No description
RLodka
RLodkaOP5d ago
I'm just learning Node.js and unfortunately I don't quite understand what needs to be done in this message.
Булочка | pasha_boez
Maybe your bot don't have mention permission?
No description
treble/luna
treble/luna5d ago
you need to provide that when replying, or set it in your client options
RLodka
RLodkaOP5d ago
My bot has Administrator rights
Булочка | pasha_boez
Maybe you right. I haven't encountered this before
Want results from more Discord servers?
Add your server