Fix the last of the eslint errors (for real this time)
diff --git a/src/commands/mod/viewas.ts b/src/commands/mod/viewas.ts
index 1120f72..ba9bc1d 100644
--- a/src/commands/mod/viewas.ts
+++ b/src/commands/mod/viewas.ts
@@ -56,7 +56,8 @@
fetchReply: true
});
let page = 0;
- while (true) {
+ let timedOut = false;
+ while (!timedOut) {
m = await interaction.editReply({
embeds: [
new EmojiEmbed()
@@ -144,7 +145,8 @@
try {
i = await m.awaitMessageComponent({ time: 300000 });
} catch (e) {
- return;
+ timedOut = true;
+ continue;
}
i.deferUpdate();
if (i.customId === "next") {