Pinging Roles on interaction reply messages

i have a basic command that pings the chat revive role when run, but i cant seem to get the bot to ping the members with the role. is there something i am missing here is my code:
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('chat-revive')
.setDescription('pings the chat revive role'),
async execute(interaction) {
await interaction.reply('<@&1361727332900929806> rez the chat');
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('chat-revive')
.setDescription('pings the chat revive role'),
async execute(interaction) {
await interaction.reply('<@&1361727332900929806> rez the chat');
},
};
5 Replies
d.js toolkit
d.js toolkit6d 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
Blazing
BlazingOP6d ago
version is 14.18
d.js docs
d.js docs6d 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"] } }
Samtino
Samtino6d ago
This controls if a user/role mention actually pings said users/roles
Blazing
BlazingOP6d ago
i see, thanks for the reply it works thanks

Did you find this page helpful?