From 768b537946da0abd89949648b803d625542c8a7d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 21 Mar 2026 01:41:17 +0100 Subject: qol ceda --- src/bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bot.js') 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); -- cgit v1.2.3