Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
[fix] Make ;ban @user purge easier to understand
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT2 committed Jan 25, 2021
1 parent 9be8a82 commit fe53ce3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ object BanCommand : BotCommand(
}

user("user") { user ->
boolean("delete messages") { deleteMsgs ->
literal("purge") {
greedy("reason") { reason ->
executeIfHas(COUNCIL_MEMBER, "Optionally delete messages, custom reason") {
ban(user.value, deleteMsgs.value, reason.value, server, message)
executeIfHas(COUNCIL_MEMBER, "Delete messages, custom reason") {
ban(user.value, true, reason.value, server, message)
}
}
}
Expand Down

0 comments on commit fe53ce3

Please sign in to comment.