Add cooldowns collection to main

This commit is contained in:
baz 2023-11-18 20:27:42 +00:00
parent 2c44a552d6
commit 52d9a0879e
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ const { token } = require('./config.json');
const client = new Client({ intents: [GatewayIntentBits.Guilds] }); const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.commands = new Collection(); client.commands = new Collection();
client.cooldowns = new Collection();
const foldersPath = path.join(__dirname, 'commands'); const foldersPath = path.join(__dirname, 'commands');
const commandFolders = fs.readdirSync(foldersPath); const commandFolders = fs.readdirSync(foldersPath);