From b32c565f94c35b7640b53c05efa6f397b97b8cd2 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Mon, 21 Jun 2021 07:51:27 -0700 Subject: [PATCH] fix: client not being passed to command --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2f02d3a..539f76c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -112,7 +112,7 @@ client.on('ready', async () => { // eslint-disable-next-line @typescript-eslint/no-var-requires 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);