intermediate update
diff --git a/src/reflex/guide.ts b/src/reflex/guide.ts
index 6829ef2..3971ad9 100644
--- a/src/reflex/guide.ts
+++ b/src/reflex/guide.ts
@@ -3,7 +3,6 @@
ActionRowBuilder,
ButtonBuilder,
MessageComponentInteraction,
- StringSelectMenuInteraction,
Guild,
CommandInteraction,
GuildTextBasedChannel,
@@ -285,8 +284,8 @@
selectPaneOpen = false;
} else if (i.component.customId === "select") {
selectPaneOpen = !selectPaneOpen;
- } else if (i.component.customId === "page") {
- page = parseInt((i as StringSelectMenuInteraction).values[0]!);
+ } else if (i.isStringSelectMenu() && i.component.customId === "page") {
+ page = parseInt(i.values[0]!);
selectPaneOpen = false;
} else {
cancelled = true;
diff --git a/src/reflex/verify.ts b/src/reflex/verify.ts
index 573da5e..f7d0396 100644
--- a/src/reflex/verify.ts
+++ b/src/reflex/verify.ts
@@ -182,14 +182,14 @@
let itt = 0;
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
do {
- itt += 1;
+ itt ++;
code = "";
for (let i = 0; i < length; i++) {
code += chars.charAt(Math.floor(Math.random() * chars.length));
}
if (itt > 1000) {
itt = 0;
- length += 1;
+ length ++;
}
} while (code in verify);
const role: Role | null = await interaction.guild!.roles.fetch(config.verify.role);