Bubby
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
ty!
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
geez
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
ohhhhh
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
What's that for?
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
That is correct
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
hopefully that answers your question
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
The code that was inside that is the exact same. I just switched the handlers themselves
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
could you be a bit more specific?
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
outputs the same thing
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
as you can see, the
customId
s are correct31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
I'm guessing you wanted me to check what the buttons'
customId
s come out to be when logged, so I changed it to tttMsg.components[2]
to show the third row, which is where the issue persists.
Here's the full output of that log:
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
k
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
or outside of it
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
you mean underneath
console.log(interaction.customId)
?31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
yes, it does
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
lemme see
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
For new people, make sure to scroll up ^^
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
I have my buttons defined with their custom IDs, and then I have the beginning of the collector. When pressing any of the buttons on row 3, it thinks button 5 with the
customId
ttt_button_5
was pressed, even though that's obviously not the correct button. In the console.log
line where I log the customId
of the button pressed, it does indeed output ttt_button_5
.
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
Should also note this:
31 replies
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
Already have it in the tag, but version is 13.16.0
31 replies