billytheape
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Or at least it triggers the shard ready event (which is where I start pulling down all the data...)
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Hmm so I have this working...
However it will just randomly "reconnect" shards and then (i think) it has to re-cache everything again
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
I put the call into a queue class I have built to make sure it's one at a time and it seems to be doing better
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
May have been hitting multiple at once, yeah
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Hm -- trying this out I am getting the "Members didn't arrive in time" error a bunch
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
I think there's at least a couple of servers we're in that have the higher tier of members
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
I didn't realize there was a distinction between passing a userId or not
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Or any limits on that?
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Is there an issue with the fetch call if there are a lot of members?
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Hmmmm that gives me an idea tho
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
yeah I can live with the RAM consumption I think
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
ohhhh interesting
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
ah ok
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Hm - would it be better to do a rest call (if that's even possible)?
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Yeah
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
From what I can tell that's the call that gets cloudflare rate limited, and then it just hangs
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Lots of distinct user/server combos
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Right, yeah that's what we do. Unfortunately it's like 80-90% of ppl's data isn't already cached 😦
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Yeah
48 replies
DIAdiscord.js - Imagine an app
•Created by billytheape on 1/8/2025 in #djs-questions
Trying to get member/roles without being rate limited
Most ppl use the website these days
48 replies