End StringSelectMenu Collector (to avoid Unknown Interaction or InteractionAlreadyReplied)

Hi,

I have a command which use a StringSelectMenu and Buttons. When the command is over, if I use it again I have an error InteractionAlreadyReplied or Unknown Interaction. I think the problem comes from the StringSelectMenu because if I wait I see it disabling itself. I aim to end this collector (and not the buttons which are useful after selection) to avoid errors if I use the command again (and without have to put a 45secs cooldown for the command) but I don't really know how achieve that.

If someone has an idea it would be great

Thx by advance

Code: https://sourceb.in/OxOZFJiZOU
SourceBin
Instantly share your code with the world.
Was this page helpful?