Advertisement
dfhfjjfgjfsfeedgf

Untitled

Sep 21st, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. const Discord = require("discord.js");
  2.  
  3. module.exports.run = async(bot, message, args) => {
  4.  
  5. // testing
  6. if (command === "announcement") {
  7. if(!message.member.hasPermission("ADMINISTRATOR")) return
  8. message.channel.send("You don't have permission to do that.");
  9. const text = args.join(" ")
  10. if (text.length < 1) return message.channel.send("Can not announce nothing");
  11. const colour = args.slice(2).join("");
  12. const embed = new Discord.RichEmbed()
  13. .setTitle("Announcement")
  14. .setColor("0x954D23")
  15. .setDescription(text);
  16. message.channel.send("@everyone")
  17. message.channel.send({embed})
  18. }
  19. }
  20. // end of testing
  21.  
  22. module.exports.help = {
  23. name: "announce"
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement