dfhfjjfgjfsfeedgf

Untitled

Sep 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // testing
  2. if (cmd === `${prefix}announcement`) {
  3. if (message.member.hasPermission("ADMINISTRATOR")) {
  4. const text = args.join(" ")
  5. if (text.length < 1) return message.channel.send("Can not announce nothing");
  6. const colour = args.slice(2).join("");
  7. const embed = new Discord.RichEmbed()
  8. .setTitle("Announcement")
  9. .setColor("0x954D23")
  10. .setDescription(text);
  11. message.channel.send("@everyone")
  12. message.channel.send({embed})
  13. }
  14. }
  15. // end of testing
Add Comment
Please, Sign In to add comment