diff options
Diffstat (limited to 'src/bot.js')
| -rw-r--r-- | src/bot.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -const { Client, GatewayIntentBits } = require('discord.js'); +const { Client, GatewayIntentBits, Events } = require('discord.js'); require('dotenv').config(); const commands = require('./commands/definitions'); @@ -18,7 +18,7 @@ const client = new Client({ const queues = new Map(); -client.once('ready', async () => { +client.once(Events.ClientReady, async () => { console.log(`Bot ready: ${client.user.tag}`); console.log(`Ready at: ${new Date().toISOString()}`); await registerCommands(commands, process.env.DISCORD_TOKEN, process.env.CLIENT_ID); |
