mirror of
https://github.com/SrIzan10/prox2-discord.git
synced 2026-06-06 01:06:57 +00:00
fix: really bad vuln
This commit is contained in:
@@ -50,11 +50,18 @@ export default commandModule({
|
|||||||
text,
|
text,
|
||||||
db: sdt.deps.prisma,
|
db: sdt.deps.prisma,
|
||||||
});
|
});
|
||||||
return await ctx.reply({
|
await ctx.channel.send({
|
||||||
content: confessionReply.content,
|
content: confessionReply.content,
|
||||||
flags: confessionReply.flags,
|
flags: confessionReply.flags,
|
||||||
allowedMentions: { parse: [] },
|
allowedMentions: { parse: [] },
|
||||||
});
|
});
|
||||||
|
const reply = await ctx.reply({
|
||||||
|
content: 'sent your reply!',
|
||||||
|
flags: MessageFlags.Ephemeral,
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
reply.delete().catch(() => null);
|
||||||
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
const modal = new ModalBuilder().setCustomId('confessionReply').setTitle('Send a reply');
|
const modal = new ModalBuilder().setCustomId('confessionReply').setTitle('Send a reply');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user