Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { RichEmbed } = require("discord.js");
- const { prefix } = require("../../botconfig.json");
- module.exports = {
- config: {
- name: "croles",
- aliases: ["roles"],
- usage: "",
- category: "fun",
- description: ".",
- accessableby: "Adminstrators"
- },
- run: async (bot, message, args) => {
- if (!message.member.hasPermission("ADMINISTRATOR")) return message.channel.send({
- embed: {
- "description": "Error ⚠️",
- "color": 0xffcb00,
- "title": "You do not have permissions."
- }
- }).then(msg => {
- if ([message.guild.id].delete == 'true') {
- msg.delete([message.guild.id].deleteTime);
- }
- });
- await message.delete().catch(O_o => {});
- const a = message.guild.roles.get('498264181347319813'); // Red
- const b = message.guild.roles.get('500403416732925963'); // DarkRed
- const Aembed = new RichEmbed()
- .setTitle('Color Roles')
- .setDescription('blah')
- .setImage('https://cdn.discordapp.com/attachments/629446461691658270/635140714178674739/discord_colors.png')
- message.channel.send(Aembed)
- const embed = new RichEmbed()
- .setDescription(`
- ${a.toString()}
- `)
- message.channel.send(embed).then(async message => {
- await message.react(message.guild.emojis.find(e => e.name === 'Red'))
- const Sembed = new RichEmbed()
- .setDescription(`
- ${b.toString()}
- `)
- message.channel.send(Sembed).then(async message => {
- await message.react(message.guild.emojis.find(e => e.name === 'DarkRed'))
- });
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement