#Ping outside embed
13 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
Ping outside embed
By adding their mention in the content: property when sending
Few different ways;
- include the user/member object in your message content
- include a mention such as
<@user_id> - use the
userMention(user_id)method (import from discord.js)
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"] } }
I am doing it this way how can I do it?
When you send your embed, include the content property
channel.send({
content: `userMention(user_id)`,
embeds: [embed]
});
One last thing, on .setDescription how can I add what on discord we normally do with ` ? because if I enter `` it doesn't work.
Example
You need escape the characters using backslashes, or you can use the inlineCode() method
Thank you.