From 33fbef0f57d40c0701cac66e29a53d6db173ef9b Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Mon, 31 Oct 2022 20:11:20 +0100 Subject: [PATCH] chore: i give up :skull: --- commands/moderation/warn.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/moderation/warn.ts b/commands/moderation/warn.ts index 79bf1c8..25ee384 100644 --- a/commands/moderation/warn.ts +++ b/commands/moderation/warn.ts @@ -116,7 +116,7 @@ export default commandModule({ if (times.times > 2) { const msg = await ctx.reply({content: `El usuario ha excedido 3 avisos, ¿qué hacer?`, ephemeral: true, components: [buttons]}) const collector = msg.createMessageComponentCollector({ time: 15000, max: 1, componentType: ComponentType.Button }); - collector.on('collect', async (i) => { + collector.on('collect', async (i: any) => { await i.deferReply({ephemeral: true}) if (i.customId === '1hour') { await i.editReply({content: `Se ha silenciado a ${usermember} durante 1 hora correctamente. ;-;`}) @@ -170,7 +170,7 @@ export default commandModule({ if (times.times >= 4) { const msg = await ctx.reply({content: `El usuario ha excedido 3 avisos, ¿qué hacer?`, ephemeral: true, components: [buttons]}) const collector = msg.createMessageComponentCollector({ time: 1000, max: 1, componentType: ComponentType.Button }); - collector.on('collect', async (i) => { + collector.on('collect', async (i: any) => { if (i.customId === '1hour') { await i.channel!.send({content: `Se ha silenciado a ${usermember} durante 1 hora correctamente. ;-;`}) usermember.timeout(60 * 60 * 1000, reason)