nick.
nick.
DIAdiscord.js - Imagine a boo! πŸ‘»
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?
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
Created by nick. on 10/22/2024 in #djs-questions
What happens at 2,500 guilds/shard if you don't automatically reshard
yep
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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
21 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
Created by nick. on 6/21/2024 in #djs-questions
Guild member caching
Yes thank you
5 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
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 a boo! πŸ‘»
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 a boo! πŸ‘»
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
DIAdiscord.js - Imagine a boo! πŸ‘»
Created by nick. on 4/9/2024 in #djs-questions
Detect when bot webhook has moved to another channel
Afaik you would be able to with the audit log entry create event, that just requires a separate permission
7 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
Created by nick. on 4/9/2024 in #djs-questions
Detect when bot webhook has moved to another channel
How would it be worse if they moved another webhook into it? Do you mean if it was a channel that didn’t have one before but they moved one into it? Or if there’d be 2?
7 replies
DIAdiscord.js - Imagine a boo! πŸ‘»
Created by nick. on 4/9/2024 in #djs-questions
Detect when bot webhook has moved to another channel
I would've liked to have gotten rid of that fetch if possible
7 replies