From 92116fd82be9b96e60edd68fecfef93a59c71c9e Mon Sep 17 00:00:00 2001 From: BarryY Date: Thu, 15 May 2025 17:56:44 +0800 Subject: [PATCH] fix: Increase Discord client ready event timeout from 10s to 30s --- src/tools/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/login.ts b/src/tools/login.ts index c539840..8e5674d 100644 --- a/src/tools/login.ts +++ b/src/tools/login.ts @@ -6,7 +6,7 @@ import { Client, GatewayIntentBits } from 'discord.js'; import { createToolContext } from './tools.js'; // Create a function to properly wait for client to be ready -async function waitForReady(client: Client, token: string, timeoutMs = 10000): Promise { +async function waitForReady(client: Client, token: string, timeoutMs = 30000): Promise { return new Promise((resolve, reject) => { // Set a timeout to prevent hanging if ready event never fires const timeout = setTimeout(() => {