Users & Role select menu not clearing when it should
I am not sure if this is a bug in discord.js discord it self or me missing something but this seems broken.
I seem to be unable to clear the select when the user has interacted with it, it is possible to clear values set by the bot via setDefaultUsers but as soon as the user selects or deselects something and triggers interactionCreate it becomes impossible to clear it.
I made some code that is able to reproduce this with the following steps
I seem to be unable to clear the select when the user has interacted with it, it is possible to clear values set by the bot via setDefaultUsers but as soon as the user selects or deselects something and triggers interactionCreate it becomes impossible to clear it.
I made some code that is able to reproduce this with the following steps
- Enter the token into the TOKEN const
- Start the bot using node
- In any channel which the bot can see and send messages in send
.test - Select a few users
- Send
again.test - Press the reset button (the menu should be cleared)
- Select a few users again
- Press the reset button again (No users will be cleared this time even though the same code is being executed)
Gist
Replication code for bug. GitHub Gist: instantly share code, notes, and snippets.
