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 7b704c6 commit eaa4fd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,15 @@ client.on(Events.ThreadCreate, async (channel) => {
);
await message.edit(`${pingRole}`);

setTimeout({
if (channel.parent && channel.parent.name === 'support') {

Check failure on line 101 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

',' expected.

Check failure on line 101 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

',' expected.

Check failure on line 101 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

';' expected.
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 {

Check failure on line 105 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Declaration or statement expected.
await message.delete({ timeout: 3000 });
await message.delete();
}
}, 5000)

Check failure on line 108 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Declaration or statement expected.

Check failure on line 108 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

';' expected.
}

Check failure on line 109 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Declaration or statement expected.
} catch (error) {

Check failure on line 110 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Declaration or statement expected.

Check failure on line 110 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

'try' expected.
console.error('Error handling ThreadCreate', error);
Expand Down

0 comments on commit eaa4fd9

Please sign in to comment.