nick.
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
Yeah true. Was just curious what would happen in that case. I did ask in ddevs too but others seem unsure what happens at the gateway level too, whether the connection is allowed to stay open or gets immediately terminated
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
so if it's not true the whole cluster exits?
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
the shard itself right? that's what i'm expecting, but my question is what does djs do when that error is received, does it try to respawn the shard itself, or does the error bubble up to the sharding manager (which can either handle it, or crash completely)
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
I suppose to keep this question on topic since I was more interested in discord.js's behavior. If it does turn out to be that discord closes the connection with a 4011, what does discord.js do here, does it try to respawn that shard specifically (which would infinitely fail due to not being a valid num_shards anymore), or does it "reshard" entirely?
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
yep
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
this is something that could really do with better clarification on discord's end since it's straight up undefined behavior rn
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
Each shard can only support a maximum of 2500 guilds, and apps that are in 2500+ guilds must enable sharding.this is all we get
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
hmm the gateway page on the docs don't seem to clarify
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
same ahah
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
oh really? didn't know that
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
the question is what happens if say you have 2 shards running and your bot exceeds 5,000 servers (or 2,500 servers on any one shard), does a shard die or does the parent process die
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
wdym by this, because if say you have 3 shards running and a new guild gets invited, of course one of those shards has to handle it
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
wdym by this? does djs automatically handle resharding? i've seen mixed info on this
24 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 6/21/2024 in #djs-questions
Guild member caching
Yes thank you
5 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 6/21/2024 in #djs-questions
Guild member caching
Very helpful, thank you for the clarification. Out of curiosity do you know where in the source I can find the default sweeping behavior? By the way, congrats on becoming a mod here you deserve it :staffCat:
5 replies
DIAdiscord.js - Imagine an app
•Created by ArcticWarmth on 4/11/2024 in #djs-questions
Interacting with a kicked user
No, they are installed everywhere. All DMs, GDMs and servers. But only for that user
7 replies
DIAdiscord.js - Imagine an app
•Created by nick. on 4/9/2024 in #djs-questions
Detect when bot webhook has moved to another channel
I guess fetching all of them at the channel level would make things easier in the case that a webhook was moved into a channel that didn’t have one before
7 replies