Skip to content

Commit b097294

Browse files
chore: rename ban history options to be clearer (#1082)
* chore: rename ban history options to be clearer * chore: update ban command period description
1 parent 2c3da71 commit b097294

File tree

1 file changed

+3
-2
lines changed
  • application/src/main/java/org/togetherjava/tjbot/features/moderation

1 file changed

+3
-2
lines changed

application/src/main/java/org/togetherjava/tjbot/features/moderation/BanCommand.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ public BanCommand(ModerationActionsStore actionsStore) {
6565
.addOptions(durationData)
6666
.addOption(OptionType.STRING, REASON_OPTION, "Why the user should be banned", true)
6767
.addOptions(new OptionData(OptionType.INTEGER, DELETE_HISTORY_OPTION,
68-
"the amount of days of the message history to delete, none means no messages are deleted.",
69-
true).addChoice("none", 0).addChoice("recent", 1).addChoice("all", 7));
68+
"the message history to delete", true).addChoice("none", 0)
69+
.addChoice("day", 1)
70+
.addChoice("week", 7));
7071

7172
this.actionsStore = Objects.requireNonNull(actionsStore);
7273
}

0 commit comments

Comments
 (0)