summaryrefslogtreecommitdiff
path: root/src/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.js')
-rw-r--r--src/bot.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bot.js b/src/bot.js
index cd7c2db..3ec9aa1 100644
--- a/src/bot.js
+++ b/src/bot.js
@@ -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);