Skip to content

Commit

Permalink
fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Apr 8, 2024
1 parent 4ba397b commit 9da28c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!'
Expand Down

0 comments on commit 9da28c6

Please sign in to comment.