Pass client to eval
This commit is contained in:
parent
ee7b194d83
commit
e0a7891b4a
|
@ -3,7 +3,7 @@ module.exports = {
|
||||||
|
|
||||||
name: 'eval',
|
name: 'eval',
|
||||||
description: 'Executes JS code',
|
description: 'Executes JS code',
|
||||||
async execute(_, message, args, config) {
|
async execute(client, message, args, config) {
|
||||||
if (message.author.id == config.ownerID) {
|
if (message.author.id == config.ownerID) {
|
||||||
try {
|
try {
|
||||||
const code = args.join(" ");
|
const code = args.join(" ");
|
||||||
|
|
Reference in New Issue