TerrorByte
DIAdiscord.js - Imagine an app
•Created by TerrorByte on 11/25/2023 in #djs-questions
Receiving "ShardingReadyTimeout" even though ready event is firing
Hi there! I'm dealing with a strange problem and I'm not sure how to handle it. I'm receiving a ShardingReadyTimeout error, but the ready event is being fired before the error is occuring, so I therefore not sure how to handle it. I'm pretty sure it's being caused by my event handler, but I'm not sure why or how. Essentially, when the bot is actually created, it's firing a
loadEvents
method which is loading all the event files within my event directory, and attaching them to the client object.
An event has a type of:
My index.ts, which is the sharding manager:
My client.ts, which is the actual bot code:
I'm extending the discord.js Client
object to support some of my own functionality, so here is that file:
12 replies