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