Changed all RichEmbed to MessageEmbed.

This is order to add discord.js v12 support.
This commit is contained in:
Two authored and GitHub committed 2020-04-06 18:10:32 -04:00
1 parent 0bd990a9e3
commit 8453fa5007
1 file changed
+2 -2
+2 -2
View File
@@ -93,7 +93,7 @@ bot.on("guildMemberAdd", (member) => {
let channel = member.guild.channels.find(channel => channel.name === `${supportbot.WelcomeChannel}`)
let autorole = member.guild.roles.find(autorole => autorole.name === `${supportbot.AutoRole}`)
const WelcomeMsg= new Discord.RichEmbed()
const WelcomeMsg= new Discord.MessageEmbed()
.setColor(supportbot.EmbedColour)
.setThumbnail(member.user.avatarURL)
.setDescription(`:wave: ${member.user.username}\n${supportbot.WelcomeMessage}`)
@@ -108,7 +108,7 @@ bot.on("guildMemberAdd", (member) => {
bot.on("guildMemberRemove", (member) => {
let channel = member.guild.channels.find(channel => channel.name === `${supportbot.LeaveChannel}`)
const LeaveMsg= new Discord.RichEmbed()
const LeaveMsg= new Discord.MessageEmbed()
.setColor(supportbot.EmbedColour)
.setThumbnail(member.user.avatarURL)
.setDescription(`:wave: ${member.user.username}\n${supportbot.LeaveMessage}`)