Honieween
DIAdiscord.js - Imagine a bot
•Created by Honieween on 7/28/2023 in #djs-questions
Creating a modal after a button click shows an "Unknown Interaction" error
I'll dig into the code later and see if I can give you a sample
11 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 7/28/2023 in #djs-questions
Creating a modal after a button click shows an "Unknown Interaction" error
I believe I did make it work, but ended up scrapping the feature - returning to the same modal more than once works inconsistently
11 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
But yeah, thank you! Would have never figured it out myself :)
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
Ayup, that makes sense. Had to base it on the message I'm supposed to be editing, had a bit of a brainfart there
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
Hold on, I might be stupid -
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
interaction.message
returns null, it being a slash command and all - don't think I've got a choice but to use interaction.channel
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
Okay, so the good part is that the
max: 1
setting worked! Thanks a ton16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
Maybe I'm misunderstanding the third but the new interaction created by the collection is passed to the function that generates the embed and back to a newly created collection, so I'm not sure where the issue lies
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
I might be missing something but I'm nto sure if any of these apply? The response is being deferred (it just crashes on the second go), and there are two interactions inside the function but they've got different names
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
Thank you thank youu!
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 11/25/2023 in #djs-questions
Collector buttons work but just once
Using djs
14.14.1
and node 9.5.0
.
Error trace:
16 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 7/28/2023 in #djs-questions
Creating a modal after a button click shows an "Unknown Interaction" error
(That being said, the modal error doesn't appear anymore when not deferring the update, so that's progress.)
11 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 7/28/2023 in #djs-questions
Creating a modal after a button click shows an "Unknown Interaction" error
11 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 7/28/2023 in #djs-questions
Creating a modal after a button click shows an "Unknown Interaction" error
You're right about collector.stop() and the reply being edited not being necessary, but not deferring the update causes a This interaction failed message to appear after three seconds. The collector is awaiting a response, maybe?
11 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 7/28/2023 in #djs-questions
Creating a modal after a button click shows an "Unknown Interaction" error
11 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 8/21/2022 in #djs-questions
Sending an error to the channel the error was caught on
For sure! This was my naive approach just looking up how other people do it, but it's not super useful if I actually want to return the error 😅
6 replies
DIAdiscord.js - Imagine a bot
•Created by Honieween on 8/21/2022 in #djs-questions
Sending an error to the channel the error was caught on
Yeah that makes sense! I use the premade WOKCommands library instead of an interaction handler built from scratch, so I might have to look into
catch
-ing using that. (If not creating my own command handler by myself, lol)6 replies