Updated buttonhandler to ignore tempbuttons

This commit is contained in:
2024-09-09 22:36:01 +02:00
parent fc50bc7a78
commit 7655768c30
3 changed files with 15 additions and 4 deletions

View File

@@ -41,11 +41,19 @@ export default {
}
if (interaction.isButton()) {
const customId = interaction.customId
let btnId: string = ""
if (customId.startsWith("tempbutton-")) {
btnId = customId.split("-")[1]
btnId = btnId.split("-")[0]
}
console.log(
color(
interaction.user.username + "#" +
interaction.user.discriminator + " clicked " +
interaction.customId,
btnId,
"pink"
)
)