Bubby
DIAdiscord.js - Imagine an app
•Created by Bubby on 10/15/2023 in #djs-questions
MessageComponentCollector gives wrong button customId
Code: https://pastebin.com/Vk2fFSvi
Hi! So, I'm creating a tic-tac-toe command, and for the most part, it's done. However, I have a weird issue. I originally used an interactionCreate event with the buttons, but now I am changing it to a collector with a collect event. The issue is the fact that the collector doesn't get the right customId for the button. It works perfectly on the interactionCreate, but now it won't work with the collector. Yes, that is the only thing I changed. I did not touch anything else at all. And before you say that I should stick with the interactionCreate event, I can't because I need to handle each game on its own, which is what the collector will do, as it's specific to a message. Does anybody know why the collector is doing this and/or how to fix it?
It was suggested to post here, as my question/problem is a little more complicated than other ones, so here I am.
31 replies