Fix: Add empty function to catch clauses
This commit is contained in:
@@ -70,7 +70,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
|
||||
interaction.reply({
|
||||
embeds: [embed],
|
||||
ephemeral: true
|
||||
}).catch();
|
||||
}).catch(() => {});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
|
||||
interaction.reply({
|
||||
embeds: [embed],
|
||||
ephemeral: true
|
||||
}).catch();
|
||||
}).catch(() => {});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
|
||||
if (logChannel && logChannel.isTextBased()) {
|
||||
logChannel.send({
|
||||
embeds: [logMessage]
|
||||
}).catch();
|
||||
}).catch(() => {});
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -138,7 +138,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
|
||||
interaction.reply({
|
||||
embeds: [embed],
|
||||
ephemeral: true
|
||||
}).catch();
|
||||
}).catch(() => {});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
|
||||
interaction.reply({
|
||||
embeds: [embed],
|
||||
ephemeral: true
|
||||
}).catch();
|
||||
}).catch(() => {});
|
||||
|
||||
const logMessage = getDefaultEmbed();
|
||||
logMessage.setTitle(`${Emoji.SETTINGS} Word removed`);
|
||||
@@ -164,7 +164,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
|
||||
if (logChannel && logChannel.isTextBased()) {
|
||||
logChannel.send({
|
||||
embeds: [logMessage]
|
||||
}).catch();
|
||||
}).catch(() => {});
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user