Pass client to eval

This commit is contained in:
IDeletedSystem64 2022-07-14 12:49:54 -05:00
parent 77517f6a16
commit 43f73c5403
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module.exports = {
await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('code'))); await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('code')));
}, },
handle (_, config, user, code) { handle (client, config, user, code) {
if (user.id === config.ownerID) { if (user.id === config.ownerID) {
try { try {
const evaled = inspect(eval(code)); const evaled = inspect(eval(code));