1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-06-04 08:53:49 -04:00
This commit is contained in:
Ean Milligan (Bastion)
2023-01-31 03:34:53 -05:00
parent d712b116b6
commit dad0b8ca76
3 changed files with 42 additions and 29 deletions

View File

@@ -18,13 +18,13 @@ export const interactionCreate = (rawBot: Bot, interaction: Interaction) => {
return;
}
const customId = interaction.data.customId ? interaction.data.customId.replace(/\$/g, '') : ''
const customId = interaction.data.customId ? interaction.data.customId.replace(/\$/g, '') : '';
if (customId && buttonNames.includes(customId)) {
const btnIdx = buttonNames.indexOf(customId);
buttons[btnIdx].execute(bot, interaction);
return;
}
console.log('interaction NOT HANDLED')
console.log('interaction NOT HANDLED');
}
};