irukanoko
DIAdiscord.js - Imagine an app
•Created by irukanoko on 4/27/2024 in #djs-questions
Discord cdn not working?
8 replies
DIAdiscord.js - Imagine an app
•Created by irukanoko on 11/5/2023 in #djs-questions
Overloaded? DiscordAPIError[50027]: Invalid Webhook Token
This may have been Discord's API acting up but I'm pretty sure my bot was having issues with processing too many button interactions.
Context: I have a live voting event where several dozen users were interacting with the same button. I got feedback saying there was a huge delay between the message confirming your vote and actually pressing the button. I think them spamming the buttons didn't help
(I pressed a button to vote multiple times since sometimes discord sucks when it comes to buttons, and this would give me the same vote message over 5 times. For one message I voted on I kept getting the message 10 mins after the match had ended)
Is there a work around to help fix this?
Is this a known problem?
Should I have all button interaction processes in some sort of queue system?
4 replies
DIAdiscord.js - Imagine an app
•Created by irukanoko on 9/6/2023 in #djs-questions
how do you modularize your subcommands so their implementation is in different files?
can someone link me to a resource? https://discordjs.guide/slash-commands/advanced-creation.html#subcommands
i understand you can
.addSubcommand(<imported subcommand>.data)
but how should the subcommand file look like? is it still SlashCommandBuilder
or SlashCommandSubcommandBuilder
?20 replies