From 9ac68f68e22c1fcd6c76018f63236615d67353fe Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 6 Apr 2020 18:14:42 -0400 Subject: [PATCH] Changed all RichEmbed to MessageEmbed. This is order to add discord.js v12 support. --- commands/poll.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/poll.js b/commands/poll.js index 35f918c..b5d8862 100644 --- a/commands/poll.js +++ b/commands/poll.js @@ -16,17 +16,17 @@ exports.run = (bot, message, args) => { let staffGroup = message.guild.roles.find(staffRole => staffRole.name === `${supportbot.StaffRole}`) - const rolemissing = new Discord.RichEmbed() + const rolemissing = new Discord.MessageEmbed() .setDescription(`:x: Looks like this server doesn't have the role **${supportbot.StaffRole}**`) .setColor(supportbot.EmbedColour) if (!staffGroup) return message.reply(rolemissing).catch(err=>{console.error(err)}) - const donothaverole = new Discord.RichEmbed() + const donothaverole = new Discord.MessageEmbed() .setDescription(`:x: Sorry! You cannot use this command with the role **${supportbot.StaffRole}**`) .setColor(supportbot.EmbedColour) if (!message.member.roles.has(staffGroup.id)) return message.reply(donothaverole) - const embed = new Discord.RichEmbed() + const embed = new Discord.MessageEmbed() .setTitle(`${supportbot.Poll_Title}`) .setDescription(args.join(" ")) .setTimestamp() @@ -46,4 +46,4 @@ exports.run = (bot, message, args) => { exports.help = { name: supportbot.Poll_Command, -}; \ No newline at end of file +};