Error with @everyone ping

Reposting from #djs-help-v14 because answering took longer than expected. What i do: Click on the button "ping bot owner" (Wrong name but ok) Expected result: Ping @everyone Actual result: Says "there was an error while executing this button" Code: https://replit.com/@OttiOtta/HelperBot Error message and interaction object https://srcb.in/AhnWYC5Cwq https://srcb.in/nDP9Ygr8gb
No description
13 Replies
d.js toolkit
d.js toolkit•13mo 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! - ✅ Marked as resolved by OP
d.js docs
d.js docs•13mo ago
To share long code snippets, use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks or files.
Ottiotta
Ottiotta•13mo ago
ok
ShompiFlen
ShompiFlen•13mo ago
guild.defaultRole is not a thing unless you are modifying discord.js structures somewhere
Ottiotta
Ottiotta•13mo ago
What is the correct way of pinging @everyone?
Stasium
Stasium•13mo ago
You can use <Guild>.roles.everyone.toString() or literally just use @everyone
Ottiotta
Ottiotta•13mo ago
shows @everyone without actually pinging
Ottiotta
Ottiotta•13mo ago
No description
No description
lupus
lupus•13mo ago
Did you set restrictions regarding mentions when defining the client?
chewie
chewie•13mo ago
either that or quite simply missing the permission to ping everyone
Ottiotta
Ottiotta•13mo ago
It has admin Maybe, i don't know what that means and how to remove them
d.js docs
d.js docs•13mo 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"] } }
Ottiotta
Ottiotta•13mo ago
helped!
Want results from more Discord servers?
Add your server