Fix the last of the eslint errors (for real this time)
diff --git a/src/commands/settings/stats.ts b/src/commands/settings/stats.ts
index b4bca10..ab6022e 100644
--- a/src/commands/settings/stats.ts
+++ b/src/commands/settings/stats.ts
@@ -148,7 +148,8 @@
}
await statsChannelAddCallback(client, interaction.member);
}
- while (true) {
+ let timedOut = false;
+ while (!timedOut) {
config = await client.database.guilds.read(interaction.guild.id);
const stats = config.getKey("stats");
const selectMenu = new MessageSelectMenu()
@@ -198,7 +199,8 @@
try {
i = await m.awaitMessageComponent({ time: 300000 });
} catch (e) {
- break;
+ timedOut = true;
+ continue;
}
i.deferUpdate();
if (i.customId === "remove") {
@@ -211,7 +213,7 @@
}
}
await interaction.editReply({
- embeds: [m.embeds[0]!.setFooter({ text: "Message closed" })],
+ embeds: [m.embeds[0]!.setFooter({ text: "Message timed out" })],
components: []
});
};