Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. const { RichEmbed } = require("discord.js");
  2. const { prefix } = require("../../botconfig.json");
  3.  
  4. module.exports = {
  5. config: {
  6. name: "croles",
  7. aliases: ["roles"],
  8. usage: "",
  9. category: "fun",
  10. description: ".",
  11. accessableby: "Adminstrators"
  12. },
  13. run: async (bot, message, args) => {
  14.  
  15. if (!message.member.hasPermission("ADMINISTRATOR")) return message.channel.send({
  16. embed: {
  17. "description": "Error ⚠️",
  18. "color": 0xffcb00,
  19. "title": "You do not have permissions."
  20. }
  21. }).then(msg => {
  22. if ([message.guild.id].delete == 'true') {
  23. msg.delete([message.guild.id].deleteTime);
  24. }
  25. });
  26.  
  27. await message.delete().catch(O_o => {});
  28.  
  29. const a = message.guild.roles.get('498264181347319813'); // Red
  30. const b = message.guild.roles.get('500403416732925963'); // DarkRed
  31.  
  32. const Aembed = new RichEmbed()
  33. .setTitle('Color Roles')
  34. .setDescription('blah')
  35. .setImage('https://cdn.discordapp.com/attachments/629446461691658270/635140714178674739/discord_colors.png')
  36. message.channel.send(Aembed)
  37.  
  38. const embed = new RichEmbed()
  39. .setDescription(`
  40.  
  41. ${a.toString()}
  42. `)
  43. message.channel.send(embed).then(async message => {
  44.  
  45. await message.react(message.guild.emojis.find(e => e.name === 'Red'))
  46. const Sembed = new RichEmbed()
  47.  
  48. .setDescription(`
  49.  
  50. ${b.toString()}
  51.  
  52. `)
  53.  
  54. message.channel.send(Sembed).then(async message => {
  55. await message.react(message.guild.emojis.find(e => e.name === 'DarkRed'))
  56. });
  57. })
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement