Gbrad
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
Constructive criticism is my favorite so thank you @duck for making me rethink my work.
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
The fix was that the const filter is a function and then (currentInteraction) is an inline function itself that takes in one parameter and this is declared as currentInteraction. Now the method looks at the parameter's customId and checks it against the id set at the top of the class.
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
Okay I owe you a thank you. This was a skill issue. I'm new to JS so I was being a bonehead and just trying to use arrow syntax functions without truly knowing what they do.
Here are my changes
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
let me mess around with it a bit
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
does that not look at the current interaction?
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
hmmmm
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
New issue when I try this though. The modal won't submit.
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
new code
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
Yes one moment please
16 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Gbrad on 4/24/2024 in #djs-questions
Unique Id on modal crashing bot submission after cancel
Okay so I tried this and it still doesn’t work.
I changed the custom id to ‘my-modal-${interaction.Id}’
16 replies