Client is in a strange ready/not ready state

https://github.com/ThreadedTickets/Bot/tree/migrate-to-bridge-v2 sharding file: https://github.com/ThreadedTickets/Bot/blob/migrate-to-bridge-v2/src/cluster.ts
Using worker processes, all the socket connections are working as intended
index.ts: https://github.com/ThreadedTickets/Bot/blob/migrate-to-bridge-v2/src/index.ts
All 3 ways of logging the token return the correct token
ready event: https://github.com/ThreadedTickets/Bot/blob/migrate-to-bridge-v2/src/events/ready.ts
The console.log in here logs this: READY null false 0 Screws
Error: (I get this error whenever my bot tried to make an api call. )
Unhandled Rejection Expected token to be set for this request, but none was present
Error: Expected token to be set for this request, but none was present
Unhandled Rejection Expected token to be set for this request, but none was present
Error: Expected token to be set for this request, but none was present
The screenshot is of the bridge server, showing that the bot is reporting ready I am running the bot with IS_PROD=false so none of the prod functions are being called. the set status file is also not being run as i have not set the env variables There are 0 errors when the bot actually logs in using client.login() and no logs showing that it gets disconnected any other info that you might want just ping me and i can add it in
No description
4 Replies
d.js toolkit
d.js toolkit2w ago
ThatBadName
ThatBadNameOP2w ago
using node 20.19.4 You mean just import it from index.ts? still gives this: READY null false 0 Screws
ThatBadName
ThatBadNameOP2w ago
assuming that you meant to do it like this
No description
ThatBadName
ThatBadNameOP2w ago
djs 14.21.0 looks like it does, ill have to have a look at why ah thanks, looks like its fixed im guessing you mean index.ts? its cause the bot will tell the bridge that its ready to start that shard then the bridge will send an ok was also gonna ask, how do i setup the @discord.js/proxy or do i just install it

Did you find this page helpful?