Skip to content

Commit d0c9aa9

Browse files
committed
added stringSelectManu to event handler
1 parent b8ea760 commit d0c9aa9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/events/interactionCreate.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ export default {
5757
console.log(error);
5858
}
5959
}
60+
//TODO
61+
62+
if (interaction.isStringSelectMenu()) {
63+
const stringSelectMenu = client.stringSelectMenus.get(interaction.customId);
64+
if (!stringSelectMenu) return;
65+
try {
66+
tringS.execute(client, interaction);
67+
} catch (error) {
68+
interaction.reply({ content: 'There was an error while executing this select menu!', ephemeral: true });
69+
console.log(error);
70+
}
71+
}
6072

6173
} catch (error) {
6274
return console.log(error);

0 commit comments

Comments
 (0)