diff --git a/commands/eval.js b/commands/eval.js index 8065592c..6f2cbe40 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -9,7 +9,7 @@ module.exports = { if (serverQueue) { let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url)); } - if (message.author.id !== client.global.devId) return message.channel.send(':x: You are not allowed to do that!'); + if (message.author.id !== client.config.devId) return message.channel.send(':x: You are not allowed to do that!'); const input = message.content.slice(prefix.length + 4); let output; try { @@ -23,4 +23,4 @@ module.exports = { .setDescription(`Input: \`\`\`js\n${input.replace(/; /g, ';').replace(/;/g, ';\n')}\n\`\`\`\nOutput: \`\`\`\n${output}\n\`\`\``); return message.channel.send(embed); }, -}; \ No newline at end of file +};