Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr authored Apr 4, 2024
1 parent 9c94bbe commit 779e254
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,17 @@ client.on(Events.ThreadCreate, async (channel) => {
);
await message.edit(`${pingRole}`);

setTimeout({
await sleep(3000)

Check failure on line 100 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Cannot find name 'sleep'.


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.`
);
} else {
await message.delete();
}
}, 5000)
}
}
} catch (error) {
console.error('Error handling ThreadCreate', error);
}
Expand Down

0 comments on commit 779e254

Please sign in to comment.