Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // testing
- if (cmd === `${prefix}announcement`) {
- if (message.member.hasPermission("ADMINISTRATOR")) {
- const text = args.join(" ")
- if (text.length < 1) return message.channel.send("Can not announce nothing");
- const colour = args.slice(2).join("");
- const embed = new Discord.RichEmbed()
- .setTitle("Announcement")
- .setColor("0x954D23")
- .setDescription(text);
- message.channel.send("@everyone")
- message.channel.send({embed})
- }
- }
- // end of testing
Add Comment
Please, Sign In to add comment