Fix: Add empty function to catch clauses

This commit is contained in:
2022-11-29 00:23:19 +01:00
parent f7c878854b
commit 361326c31e
8 changed files with 20 additions and 20 deletions

View File

@ -42,7 +42,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
interaction.reply({
embeds: [embed],
ephemeral: true
}).catch();
}).catch(() => {});
if (!settings.notificationChannelID) return;
const logChannel = await getGuildChannel(interaction.guildId, settings.notificationChannelID);
@ -57,7 +57,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
logChannel.send({
embeds: [logEmbed]
}).catch();
}).catch(() => {});
}
export {