Fix the last of the eslint errors (for real this time)
diff --git a/src/commands/settings/logs/channel.ts b/src/commands/settings/logs/channel.ts
index c645581..206d282 100644
--- a/src/commands/settings/logs/channel.ts
+++ b/src/commands/settings/logs/channel.ts
@@ -114,7 +114,8 @@
let clicks = 0;
const data = await client.database.guilds.read(interaction.guild.id);
let channel = data.logging.logs.channel;
- while (true) {
+ let timedOut = false;
+ while (!timedOut) {
await interaction.editReply({
embeds: [
new EmojiEmbed()
@@ -142,7 +143,7 @@
try {
i = await m.awaitMessageComponent({ time: 300000 });
} catch (e) {
- break;
+ timedOut = true;
}
i.deferUpdate();
if (i.component.customId === "clear") {
@@ -152,8 +153,6 @@
await client.database.guilds.write(interaction.guild.id, null, ["logging.logs.channel"]);
channel = undefined;
}
- } else {
- break;
}
}
await interaction.editReply({