fix: really bad vuln

This commit is contained in:
2025-10-07 16:42:47 +02:00
parent 5822f519ad
commit 236aa2bc90

View File

@@ -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');