fixing eslint
diff --git a/src/commands/settings/tickets.ts b/src/commands/settings/tickets.ts
index af74475..2e046bf 100644
--- a/src/commands/settings/tickets.ts
+++ b/src/commands/settings/tickets.ts
@@ -154,7 +154,7 @@
.setCustomId("maxTickets")
.setPlaceholder("Enter a number")
.setRequired(false)
- .setValue(ticketData.maxTickets.toString() ?? "")
+ .setValue(ticketData.maxTickets.toString())
.setMinLength(1)
.setMaxLength(3)
.setStyle(TextInputStyle.Short)
@@ -187,7 +187,7 @@
}
if (!out || out.isButton()) continue;
out = out as ModalSubmitInteraction;
- let toAdd = out.fields.getTextInputValue("maxTickets");
+ const toAdd = out.fields.getTextInputValue("maxTickets");
if(isNaN(parseInt(toAdd))) {
errorMessage = "You entered an invalid number - No changes were made";
break;
@@ -394,11 +394,10 @@
toAdd = toAdd.substring(0, 80);
try {
if(!data.customTypes) data.customTypes = [];
- data.customTypes?.push(toAdd);
+ data.customTypes.push(toAdd);
} catch {
continue;
}
- data.customTypes = data.customTypes ?? [];
if (!data.customTypes.includes(toAdd)) {
data.customTypes.push(toAdd);
}