Pass client to eval
This commit is contained in:
parent
77517f6a16
commit
43f73c5403
|
@ -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));
|
||||||
|
|
Reference in New Issue