From 9da28c64646b26a23f8ccd82abe20c4ab6132000 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Mon, 8 Apr 2024 08:57:25 -0400 Subject: [PATCH] fix timeout --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5e4b441..73b7c6f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -91,7 +91,9 @@ client.on(Events.ThreadCreate, async (channel) => { if (channel.type === ChannelType.PublicThread && channel.guild) { const pingRole = channel.guild.roles.cache.find( (r) => r.name === 'Moderator' - )!; + ); + + await new Promise(resolve => setTimeout(resolve, 5000)) const message = await channel.send( 'Bringing mods into this thread so they can see it!'