Archived
0
0
Fork 0

fix: client not being passed to command

This commit is contained in:
Daryl Ronningen 2021-06-21 07:51:27 -07:00
parent cba9440519
commit b32c565f94
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -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);