Changed all RichEmbed to MessageEmbed.
This is order to add discord.js v12 support.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ exports.run = (bot, message, args) => {
|
|||||||
|
|
||||||
console.log(`\u001b[33m`, `[${supportbot.Bot_Name}] > `, `\u001b[31;1m`, `${message.author.tag}`, `\u001b[32;1m`, `has executed`, `\u001b[31;1m`, `${supportbot.Prefix}${supportbot.Ping_Command}`);
|
console.log(`\u001b[33m`, `[${supportbot.Bot_Name}] > `, `\u001b[31;1m`, `${message.author.tag}`, `\u001b[32;1m`, `has executed`, `\u001b[31;1m`, `${supportbot.Prefix}${supportbot.Ping_Command}`);
|
||||||
|
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setDescription(`:ping_pong: **Pong!** \`${bot.ping}ms\` `)
|
.setDescription(`:ping_pong: **Pong!** \`${bot.ping}ms\` `)
|
||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
message.channel.send(embed).catch(console.error);
|
message.channel.send(embed).catch(console.error);
|
||||||
|
|||||||
Reference in new issue
Block a user