From 236aa2bc90ae6c097df6ecd368386bfe82cf9dbb Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Tue, 7 Oct 2025 16:42:47 +0200 Subject: [PATCH] fix: really bad vuln --- src/commands/reply.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/commands/reply.ts b/src/commands/reply.ts index 54e64e0..7fc527e 100644 --- a/src/commands/reply.ts +++ b/src/commands/reply.ts @@ -50,11 +50,18 @@ export default commandModule({ text, db: sdt.deps.prisma, }); - return await ctx.reply({ + await ctx.channel.send({ content: confessionReply.content, flags: confessionReply.flags, allowedMentions: { parse: [] }, }); + const reply = await ctx.reply({ + content: 'sent your reply!', + flags: MessageFlags.Ephemeral, + }); + setTimeout(() => { + reply.delete().catch(() => null); + }, 500); } else { const modal = new ModalBuilder().setCustomId('confessionReply').setTitle('Send a reply');