Del
DIAdiscord.js - Imagine an app
•Created by Del on 10/29/2023 in #djs-questions
Is it best to stay away from batch functionality?
I have a use case where I have a website interface for my bot. I can track users, edit them, accept applicants through the site (from which the form is submitted to a discord channel in embeded form), and so on and so forth. I also have the ability to remove applicants (which should also effectively remove the users application as well, but I haven't implemented this yet).
My question is when I have a scenario where I might want to approve multiple applicants from the web interface and have that reflected on discord (thus I'd have to update multiple discord messages linked to said applicants), or reject/remove, what's the best way to handle this or should I avoid it altogether and simply handle it on an individual by individual bases (which isn't the best user experience having to doing it one at a time on the web site),
I know discord js handles rate limiting, but I'm curious how that would apply in this scenario. Keep in mind I might have multiple people handling applicants on the web site end, so that's multiple requests to discord from different vectors.
9 replies
DIAdiscord.js - Imagine an app
•Created by Del on 10/22/2023 in #djs-questions
Events.GuildRoleUpdate sends previous role object, not the new role object
Maybe I misread this, but the object returned in the guildRoleUpdate is the previous version of the role, not the newly updated one. Example is if I change the name from Testers to Tester, I'll get the old name (testers) instead of the new name. Is this the intended behavior?
3 replies