Skip to content

Commit

Permalink
fix: catch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Mar 9, 2023
1 parent 7e4039d commit 25d7cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menus/create.js
Expand Up @@ -14,7 +14,7 @@ module.exports = class CreateMenu extends Menu {
* @param {import("discord.js").SelectMenuInteraction} interaction
*/
async run(id, interaction) {
if (!interaction.message.flags.has(MessageFlags.Ephemeral)) interaction.message.edit({ components: interaction.message.components }); // reset the select menu (minor client-side UI issue)
if (!interaction.message.flags.has(MessageFlags.Ephemeral)) interaction.message.edit({ components: interaction.message.components }).catch(() => { }); // reset the select menu (to fix a UI issue)
await this.client.tickets.create({
...id,
categoryId: interaction.values[0],
Expand Down

0 comments on commit 25d7cda

Please sign in to comment.