Michiru
Michiru
DIAdiscord.js - Imagine a boo! 👻
Created by Michiru on 9/14/2023 in #djs-questions
Unknown interaction error when responding to RateLimitError
So I've been running into this very annoying Unknown interaction bug, randomly triggering when I get rate limited on changing a channel. When I say triggering randomly, I mean sometimes it catches the error perfectly fine (rejecting and triggering my error response), and sometimes it crashes the bot. I don't know if I've overlooked something obvious (and honestly, I hope that's the case). I looked around in this channel a bit and I've seen the common causes tag, but: - This error gets thrown immediately, it isn't because I'm responding too slow - I'm not using a collector - There's only a single process handling this interaction I've been using this bot skeleton for years, but I've never ran into this kind of problem before, so I'm almost absolutely certain that there's no overlapping interaction events or such. Relevant pieces of code linked below. Interaction handler: https://github.com/MayberryZoom/dread-bot/blob/main/dread-bot.js#L92 Command body: https://github.com/MayberryZoom/dread-bot/blob/main/commands/channel.js#L41 Line triggering the error: https://github.com/MayberryZoom/dread-bot/blob/main/commands/channel.js#L56
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Michiru on 8/19/2022 in #djs-questions
2 Part Modal
Looking to create a form through a Discord bot, but I need more than 5 questions. I've been trying to have a 2 part form using two modals, but I've had no luck. Searched around a bit here, and it seems like this isn't possible? Is there any way I could do this? Maybe send a reply to the first part with a button the user can press to get the second part? Or is there any way I can do it automatically without user input in between?
8 replies