DaveY
DIAdiscord.js - Imagine an app
•Created by DaveY on 11/2/2023 in #djs-questions
Does Sharding take advantage of multiple CPUS?
I’ll look more into internal sharding as well then.
3 replies
DIAdiscord.js - Imagine an app
•Created by adam on 10/27/2023 in #djs-questions
Mass adding of roles
I can tell you from recent experience that trying to add 2 consecutive roles one after the other is hit or miss unless you have a delay between them.
9 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
and I learned a LOT about rate limits
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
Mystery solved
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
I am so sorry... I had removed all embed updates, but never removed the call to edit the message if there were NO updates 😦
So it was sending out an .edit once per second that was unneeded
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
I really thought I was only editing once per 3 seconds, will see if I'm doing something else that I forgot about (footer mods, etc)
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
OK, I think I can work with that
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
imagine my pain lol
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
I thought timeToReset was SECONDS
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
Aha!
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
Yep! It's the "that often" part that I would love a little clarity on. I wouldn't think once every 3 seconds in a few guilds at a time is unreasonable, but I can't tell without knowing the bucket info
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
I got a message back from Discord support about raising the rate limits.
I've determined that I'm hitting rate limits on the Patch endpoint (as seen in the screenshots above). I'm running this bot on a dedicated server, and am hitting this rate limit in only one guild when in heavy use, so it seems sharding isn't going to assist at this point. I don't have any real-time insight into what the rate limits or bucket size look like to understand how I can design around them. Is this something that can be surfaced PRIOR to hitting the rate limit?
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
Giving an update. After deploying on a new server and running some group tests, I definitely saw rate limits being hit. They tended to come in the Edit calls, as we are updating a main game embed every 3 seconds, along with player-specific ephemerals much more often.
This corresponds to the PATCH endpoint, so I've made a request to see if we can have that bucket increased.
59 replies
DIAdiscord.js - Imagine an app
•Created by BenW on 10/26/2023 in #djs-questions
Interaction already replied on bot restart
Aside from network connectivity issues recently, my bots haven't had that issue. When it kills the process it's gone
6 replies
DIAdiscord.js - Imagine an app
•Created by BenW on 10/26/2023 in #djs-questions
Interaction already replied on bot restart
I’ve never needed to use shutdown procedures on D.O. Bots, but if you needed to you could setTimeout the client.login a bit, which would give you a little breathing room.
6 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
Thanks for the tips, this is fascinating and I look forward to knowing WTH I'm doing wrong 😉
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
New host, dedicated server
59 replies
DIAdiscord.js - Imagine an app
•Created by DaveY on 10/26/2023 in #djs-questions
Client cannot login
OK. I'm testing that tonight with only one server, one bot
59 replies