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