Working on viewas
diff --git a/src/commands/mod/warn.ts b/src/commands/mod/warn.ts
index d920bb0..c4aa7c3 100644
--- a/src/commands/mod/warn.ts
+++ b/src/commands/mod/warn.ts
@@ -56,6 +56,7 @@
notify
)
.addReasonButton(reason ?? "")
+ .setFailedMessage("No changes were made", "Success", "PUNISH.WARN.GREEN")
.send(reason !== null);
reason = reason ?? "";
if (confirmation.cancelled) timedOut = true;
@@ -66,20 +67,7 @@
createAppealTicket = confirmation.components["appeal"]!.active;
}
} while (!timedOut && !success)
- if (timedOut) return;
- if (!confirmation.success) {
- await interaction.editReply({
- embeds: [
- new EmojiEmbed()
- .setEmoji("PUNISH.WARN.GREEN")
- .setTitle("Warn")
- .setDescription("No changes were made")
- .setStatus("Success")
- ],
- components: []
- });
- return;
- }
+ if (timedOut || !confirmation.success) return;
let dmSent = false;
const config = await client.database.guilds.read(interaction.guild.id);
try {