diff --git a/src/commands/confess.ts b/src/commands/confess.ts index e1f9b11..ed51cd6 100644 --- a/src/commands/confess.ts +++ b/src/commands/confess.ts @@ -153,7 +153,13 @@ export async function execute(interaction: ChatInputCommandInteraction) { collector.on("collect", i => { if (i.customId === "submitConfession") { - i.showModal(submit); + // Check if the user is banned from confessions first before displaying the modal + dt.isBanned(i.guild.id, i.user.id) + ? i.reply({ + content: "You are banned from confessions in this server!", + ephemeral: true + }) + : i.showModal(submit); } });