fix: client not being passed to command
This commit is contained in:
parent
cba9440519
commit
b32c565f94
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ client.on('ready', async () => {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const fileCommand = require(file);
|
const fileCommand = require(file);
|
||||||
|
|
||||||
const command = new fileCommand[path.basename(file, path.extname(file))]();
|
const command = new fileCommand[path.basename(file, path.extname(file))](client, path.basename(file, path.extname(file)));
|
||||||
|
|
||||||
commands.set(command.options.name, command);
|
commands.set(command.options.name, command);
|
||||||
|
|
||||||
|
|
Reference in a new issue