Fix the last of the eslint errors (for real this time)
diff --git a/src/commands/settings/commands.ts b/src/commands/settings/commands.ts
index fe6a181..294c0fd 100644
--- a/src/commands/settings/commands.ts
+++ b/src/commands/settings/commands.ts
@@ -50,7 +50,8 @@
});
}
}
- while (true) {
+ let timedOut = false;
+ while (!timedOut) {
const config = await client.database.guilds.read(interaction.guild.id);
const moderation = config.getKey("moderation");
m = await interaction.editReply({
@@ -119,7 +120,8 @@
try {
i = await m.awaitMessageComponent({ time: 300000 });
} catch (e) {
- return;
+ timedOut = true;
+ continue;
}
let chosen = moderation[i.customId] ?? { text: null, url: null };
if (i.component.customId === "clearMuteRole") {