componentCollector.on("collect", (buttonInteraction) => { handleSelectedConvertType(buttonInteraction, interaction) // interaction - is initial interaction that comes when user executed /command componentCollector.stop("collected") })
componentCollector.on("collect", (buttonInteraction) => { handleSelectedConvertType(buttonInteraction, interaction) // interaction - is initial interaction that comes when user executed /command componentCollector.stop("collected") })
In this function i'm getting options that user provide when executed
And somehow if two users manage to click button on the same time
initialInteraction.user.toString()
initialInteraction.user.toString()
will be not what we expect. For example: I clicked button and should see in response my mention, but I see mention of my friend that manage to click it on the same time