From 7b704c6083813706595427d239fed3bf5ee0e7e7 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 4 Apr 2024 13:22:26 -0400 Subject: [PATCH] Update index.ts --- src/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index fabbf34..eecb2c4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -98,11 +98,9 @@ client.on(Events.ThreadCreate, async (channel) => { await message.edit(`${pingRole}`); 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(); + await message.delete({ timeout: 3000 }); } } } catch (error) {