fixing eslint
diff --git a/src/commands/settings/automod.ts b/src/commands/settings/automod.ts
index f10cf67..87b1844 100644
--- a/src/commands/settings/automod.ts
+++ b/src/commands/settings/automod.ts
@@ -646,9 +646,9 @@
return current
}
-const cleanMenu = async (interaction: StringSelectMenuInteraction, m: Message, current: {
- channels: string[],
- allowed: {
+const cleanMenu = async (interaction: StringSelectMenuInteraction, m: Message, current?: {
+ channels?: string[],
+ allowed?: {
roles: string[],
user: string[]
}
@@ -729,12 +729,12 @@
} else {
switch (i.customId) {
case "toAdd": {
- let channelEmbed = new EmojiEmbed()
+ const channelEmbed = new EmojiEmbed()
.setTitle("Clean Settings")
.setDescription(`Editing <#${i.values[0]}>`)
.setEmoji("GUILD.SETTINGS.GREEN")
.setStatus("Success")
- let channelButtons = new ActionRowBuilder<ButtonBuilder>()
+ const channelButtons = new ActionRowBuilder<ButtonBuilder>()
.addComponents(
new ButtonBuilder()
.setCustomId("back")
@@ -788,7 +788,13 @@
} while(!closed);
- return current;
+ return current as {
+ channels: string[],
+ allowed: {
+ roles: string[],
+ user: string[]
+ }
+ };
}