Skip to content

Commit

Permalink
Make timeout, you know, actually timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
NoComment1105 committed Jun 19, 2024
1 parent 47140eb commit df39981
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,10 @@ class ModerationCommands : Extension() {
}
}

arguments.userArgument.asMemberOrNull(guild!!.id)?.edit {
timeoutUntil = duration
}

respond {
content = "Timed-out ${arguments.userArgument.mention}."
}
Expand Down Expand Up @@ -784,6 +788,10 @@ class ModerationCommands : Extension() {
}
}

arguments.userArgument.asMemberOrNull(guild!!.id)?.edit {
timeoutUntil = null
}

respond {
content = "Removed timeout from user."
}
Expand Down

0 comments on commit df39981

Please sign in to comment.