Hi , I am making a discord bot and I want to make a command , +announce, which would Embed an Announcement. Basically a Embed Announcement command, please someone send me a Embed Announcement command please! Thanks I really need it
Here’s one:
if (message.content.startsWith(prefix + "announce")) {
// reading content to be announced
let announcemessage = message.content.match(/(?<=announce ).*$/)[0];
let finalmessage = announcemessage.toUpperCase();
console.log(announcemessage);
// the embed
const announceEmbed = new Discord.RichEmbed()
.setColor("#ff1233")
.setTitle("Announcement!")
.setDescription("@everyone, " + finalmessage);
// add more embed configs if you like
message.channel.send(announceEmbed);
}
Just to note that mentions made in embeds will not ping the user(s).
No, it actually does. It works for me!
But it doesn’t actually ping.
Okay!
20characters:)
1 Like