#Failed to find guild, or unknown type for channel

45 messages · Page 1 of 1 (latest)

rocky stone
#

Hey! My bot usually never took this long to startup however as of lately (a week), its been taking long enough to start up and hence why I did some debugging.

ruby axle
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

rocky stone
#

After doing some debugging, This is what I constantly see on every login.

#

Discord version: 13.9.0
Node version: 16.18.0

#

Another thing I noticed was this:

#

I personally don't believe I need sharding because I haven't hit the limit nor am I anywhere close to it

#

I'm unsure on whats the cause for this and would love some help

#

To add a little more information on this: I have this one guild that always emits under the guildDelete event every single time before my bot logs in. I assume that could be the Unavailable guild but how do I fix this?

cunning echo
#

This is v13 ignoring Forum channels because it doesnt know how to handle them

rocky stone
#

I see. Is there any way to speed up this process?

rocky stone
cunning echo
#

Speed up what process

rocky stone
#

All the errors that come up

cunning echo
#

They arent errors, theyre just debug output

cunning echo
rocky stone
#

Yeah true however that takes ~20s for my bot to login

rocky stone
cunning echo
#

Its because its timing out on that one guild for 15 seconds

#

Yes

rocky stone
cunning echo
#

I think you can change the client ready timeout

rocky stone
#

So I wasn't sure if shard starts at 0 or 1

cunning echo
#

waitGuildTimeout is the client option

#

Shard 0 is 1 shard

rocky stone
#

I see

#

Wait so why is 1 guild unavailable? discord.js bug?

cunning echo
#

Shard 0 and shard 1 would be two shards

#

no, not a discord.js bug

#

We only handle the data Discord sends us

rocky stone
#

Is it based on certain bot applications only?

cunning echo
#

Cant tell you

rocky stone
#

It doesn't happen on my dev bot

cunning echo
#

Nothing to do with discord.js

#

Purely handling data Discord sends

rocky stone
cunning echo
#

That would not be a good idea, means you're giving it no time at all to get guilds ready

rocky stone
rocky stone
#

Does v14 handle forums correctly?

cunning echo
#

You could lower it to something like 2-5s pretty safely

#

v14 does, yes

rocky stone
#

Alright ill just prepare for a v14 update, I rather not break things by lowering it :p

#

thanks for the help