Skip to content
Snippets Groups Projects
Unverified Commit 9da80d3a authored by Maxime FRIESS's avatar Maxime FRIESS :blue_heart:
Browse files

[version] 1.6.1

parents ab6ff1ac e20242e0
No related merge requests found
{
"name": "seb-bot",
"version": "1.6.0",
"version": "1.6.1",
"main": "index.js",
"repository": "https://git.unistra.fr/amicale-core/seb-bot",
"author": "Maxime Friess <M4x1me@pm.me>",
......
......@@ -190,9 +190,9 @@ class Bot {
this.__logger.error("Error when handling " + type + " \"" + (interaction.commandName ?? interaction.customId) + "\"", e);
try {
if (interaction.deferred)
interaction.editReply({ content: "Une erreur est survenue lors du traitement de votre " + type + "." });
await interaction.editReply({ content: "Une erreur est survenue lors du traitement de votre " + type + "." });
else
interaction.reply({ content: "Une erreur est survenue lors du traitement de votre " + type + ".", ephemeral: true });
await interaction.reply({ content: "Une erreur est survenue lors du traitement de votre " + type + ".", ephemeral: true });
} catch (e) {
this.__logger.error("Error when handling error of " + type + " \"" + (interaction.commandName ?? interaction.customId) + "\"", e);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment