I need help to make a announcements command

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();

    // the embed 
    const announceEmbed = new Discord.RichEmbed()
      .setDescription("@everyone, " + finalmessage);
      // add more embed configs if you like

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.



1 Like