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 User2y ago
Message Not Public
Sign In & Join Server To View
Mac
Mac2y ago
After doing some debugging, This is what I constantly see on every login.
Mac
Mac2y ago
Discord version: 13.9.0 Node version: 16.18.0
Mac
Mac2y ago
Another thing I noticed was this:
Mac
Mac2y 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
monbrey2y ago
This is v13 ignoring Forum channels because it doesnt know how to handle them
Mac
Mac2y ago
I see. Is there any way to speed up this process? Also what's the cause for this? Forums too?
monbrey
monbrey2y ago
Speed up what process
Mac
Mac2y ago
All the errors that come up
monbrey
monbrey2y 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
Mac2y ago
Yeah true however that takes ~20s for my bot to login So the initial number is 1 and not 0 i assume?
monbrey
monbrey2y ago
Its because its timing out on that one guild for 15 seconds Yes
Mac
Mac2y ago
Is there any way to prevent this?
monbrey
monbrey2y ago
I think you can change the client ready timeout
Mac
Mac2y 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
monbrey2y ago
waitGuildTimeout is the client option Shard 0 is 1 shard
Mac
Mac2y ago
I see Wait so why is 1 guild unavailable? discord.js bug?
monbrey
monbrey2y 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
Mac2y ago
Is it based on certain bot applications only?
monbrey
monbrey2y ago
Cant tell you
Mac
Mac2y ago
It doesn't happen on my dev bot
monbrey
monbrey2y ago
Nothing to do with discord.js Purely handling data Discord sends
Mac
Mac2y ago
if i set it to 0, would it just ignore it then?
monbrey
monbrey2y ago
That would not be a good idea, means you're giving it no time at all to get guilds ready
Mac
Mac2y 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
monbrey2y ago
You could lower it to something like 2-5s pretty safely v14 does, yes
Mac
Mac2y ago
Alright ill just prepare for a v14 update, I rather not break things by lowering it :p thanks for the help
monbrey
monbrey2y ago
no worries
Want results from more Discord servers?
Add your server
More Posts
wait postHow i listen posts in Posts channels? like: `PostChannel.awaitPost()` discord.js: v14.6.0 nodejs: vResponding to choosesHello how would you be able to respond differently depending which choose the user made using a striI have this delete-commands.js for slash commands and it isn't working.https://gist.github.com/DudeThatsErin/b0231f2a38cb85309a33de14faac0107 This is the error message I Expecting a string primitive for SlashCommandBuilderI tried making an embed command using Slash commands and a lot of paramaters(probably not a good idewhen his bot is inside a voice channel, moving others takes about 5 seconds, whilst when it’s not inthere is a very strange bug when my bot is in vocal and that it has to move a member the action but How can I get the voice states of members?How can I get the voice states of members? For some reason do I only get the voice states of the memAdding a role to owner of a server.Hello, I've searched the Internet for this answer but did not find it, so here I am. I wanted to knHow to see which option was triggered from an interactionI have a slash command where there are two options (say a and b). a has three choices say 1,2,3 b haSending files from vue front end to custom discord bot through express backend.I'm wondering what the best process to doing this is. Currently I have a vue frontend component whicIs it possible for a bot so send a message before it goes offline?I am just wondering, can I make it so my bot sends a "Going Offline" message right before it becomes