From eaa4fd9ff7988a924de0d1bd9279637aa7224717 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 4 Apr 2024 13:25:17 -0400 Subject: [PATCH] Update index.ts --- src/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index eecb2c4..1f10f61 100644 --- a/src/index.ts +++ b/src/index.ts @@ -97,11 +97,15 @@ client.on(Events.ThreadCreate, async (channel) => { ); await message.edit(`${pingRole}`); + setTimeout({ if (channel.parent && channel.parent.name === 'support') { - await message.edit(`Hello <@!${channel.ownerId}>! Someone will help you shortly, please do not ping moderators or other people and just wait for someone to come help.`); + await message.edit( + `Hello <@!${channel.ownerId}>! Someone will help you shortly, please do not ping moderators or other people and just wait for someone to come help.` + ); } else { - await message.delete({ timeout: 3000 }); + await message.delete(); } + }, 5000) } } catch (error) { console.error('Error handling ThreadCreate', error);