Squashed Bugs
diff --git a/src/commands/mod/about.ts b/src/commands/mod/about.ts
index 9630288..fc656ff 100644
--- a/src/commands/mod/about.ts
+++ b/src/commands/mod/about.ts
@@ -7,7 +7,6 @@
ActionRowBuilder,
ButtonBuilder,
MessageComponentInteraction,
- ModalSubmitInteraction,
ButtonStyle,
TextInputStyle,
APIMessageComponentEmoji,
@@ -427,13 +426,10 @@
}
if (out === null || out.isButton()) {
continue;
- } else if (out instanceof ModalSubmitInteraction) {
- let toAdd = out.fields.getTextInputValue("note") || null;
- if (toAdd === " ") toAdd = null;
- if (toAdd) toAdd = toAdd.trim();
- await client.database.notes.create(member.guild.id, member.id, toAdd);
} else {
- continue;
+ let toAdd = out.fields.getTextInputValue("note").trim() || null;
+ if (toAdd === "") toAdd = null;
+ await client.database.notes.create(member.guild.id, member.id, toAdd);
}
} else if (i.customId === "history") {
await i.deferUpdate();
diff --git a/src/commands/settings/automod.ts b/src/commands/settings/automod.ts
index 5b4198f..de8e740 100644
--- a/src/commands/settings/automod.ts
+++ b/src/commands/settings/automod.ts
@@ -757,8 +757,9 @@
.addComponents(
new ActionRowBuilder<TextInputBuilder>().addComponents(
new TextInputBuilder()
+ .setLabel("Amount")
.setCustomId("mass")
- .setPlaceholder("Amount")
+ .setPlaceholder(current.mass === 5 ? "Amount" : current.mass.toString())
.setMinLength(1)
.setMaxLength(3)
.setStyle(TextInputStyle.Short)