Failed to find guild, or unknown type for channel

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.
28 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Mac
MacOP3y ago
After doing some debugging, This is what I constantly see on every login.
Mac
MacOP3y ago
Discord version: 13.9.0 Node version: 16.18.0
Mac
MacOP3y ago
Another thing I noticed was this:
Mac
MacOP3y ago
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?
monbrey
monbrey3y ago
This is v13 ignoring Forum channels because it doesnt know how to handle them
Mac
MacOP3y ago
I see. Is there any way to speed up this process? Also what's the cause for this? Forums too?
monbrey
monbrey3y ago
Speed up what process
Mac
MacOP3y ago
All the errors that come up
monbrey
monbrey3y ago
Thats why it only recommends 1 They arent errors, theyre just debug output This is a known Discord thing, cant remember why it happens
Mac
MacOP3y ago
Yeah true however that takes ~20s for my bot to login So the initial number is 1 and not 0 i assume?
monbrey
monbrey3y ago
Its because its timing out on that one guild for 15 seconds Yes
Mac
MacOP3y ago
Is there any way to prevent this?
monbrey
monbrey3y ago
I think you can change the client ready timeout
Mac
MacOP3y ago
ahh, because debug shows WS -> Shard 0 so i was confused So I wasn't sure if shard starts at 0 or 1
monbrey
monbrey3y ago
waitGuildTimeout is the client option Shard 0 is 1 shard
Mac
MacOP3y ago
I see Wait so why is 1 guild unavailable? discord.js bug?
monbrey
monbrey3y ago
Shard 0 and shard 1 would be two shards no, not a discord.js bug We only handle the data Discord sends us
Mac
MacOP3y ago
Is it based on certain bot applications only?
monbrey
monbrey3y ago
Cant tell you
Mac
MacOP3y ago
It doesn't happen on my dev bot
monbrey
monbrey3y ago
Nothing to do with discord.js Purely handling data Discord sends
Mac
MacOP3y ago
if i set it to 0, would it just ignore it then?
monbrey
monbrey3y ago
That would not be a good idea, means you're giving it no time at all to get guilds ready
Mac
MacOP3y ago
I see. i just made a guild check to ignore it so it's okay So you reckon I just leave it at the default one and let it take 20s to get it all up? Does v14 handle forums correctly?
monbrey
monbrey3y ago
You could lower it to something like 2-5s pretty safely v14 does, yes
Mac
MacOP3y ago
Alright ill just prepare for a v14 update, I rather not break things by lowering it :p thanks for the help
monbrey
monbrey3y ago
no worries
Want results from more Discord servers?
Add your server