diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 15:09:36 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 15:09:36 -0500 |
| commit | 69888042fc3a2d0b92dfdc9fddedeb3f27fed47e (patch) | |
| tree | a30e83804e052122c82cc34fbb113292a7e8f54c | |
| parent | 448d794372baa5535f6886e5b47344e6130dc8a7 (diff) | |
| download | PokeBot-69888042fc3a2d0b92dfdc9fddedeb3f27fed47e.tar.gz PokeBot-69888042fc3a2d0b92dfdc9fddedeb3f27fed47e.tar.bz2 PokeBot-69888042fc3a2d0b92dfdc9fddedeb3f27fed47e.zip | |
fix eval
| -rw-r--r-- | commands/Owners Only/eval.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/Owners Only/eval.js b/commands/Owners Only/eval.js index 1e7bb4e..09a6374 100644 --- a/commands/Owners Only/eval.js +++ b/commands/Owners Only/eval.js @@ -2,6 +2,7 @@ exports.run = async (bot, msg, args) => { if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) { msg.reply('Nope! You need the person who created this bot to use this command.'); } + const { RichEmbed } = require('discord.js'); const code = args.join(' '); let evaled; @@ -23,7 +24,7 @@ exports.run = async (bot, msg, args) => { } } catch (err) { - const embed = new bot.Embed() + const embed = new RichEmbed() .setAuthor('Eval Error') .setDescription('Eval\'s result') .addField(':inbox_tray: Input:', `\`\`\`js\n${code}\n\`\`\``) @@ -34,7 +35,7 @@ exports.run = async (bot, msg, args) => { } try { - const embed = new bot.Embed() + const embed = new RichEmbed() .setAuthor('Eval Success') .setDescription('Eval\'s result') .addField(':inbox_tray: Input:', `\`\`\`js\n${code}\n\`\`\``) @@ -44,7 +45,7 @@ exports.run = async (bot, msg, args) => { return msg.channel.send({ embed }); } catch (err) { - const embed = new bot.Embed() + const embed = new RichEmbed() .setAuthor('Eval Error') .setDescription('Eval\'s result') .addField(':inbox_tray: Input:', `\`\`\`js\n${code}\n\`\`\``) |
