Skip to content

Commit

Permalink
add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dylangarcia committed Mar 16, 2024
1 parent 7e18d01 commit b64bff9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features/april-fools/community-timeout-vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export default {
"The AI gods have deemed you unworthy. You will remain timed out.",
);

await msg.guild?.members.cache
.get(timedOutUserId)
?.timeout(TIMEOUT_DURATION_MINS * 60 * 1000);

sleep(TIMEOUT_DURATION_MINS * 60).then(() => {
// If the person is still timed out, remove the timeout
// Otherwise, somebody else has been timed out so we just let it go
Expand Down

0 comments on commit b64bff9

Please sign in to comment.