Skip to content

Add 14 days and 1 year ban option #1527

Description

@Alathreon

Is your feature request related to a problem? Please describe.
Bans for 7 and 30 days are possible, but we would like a middle ground of 14 days.
Similarly, we can permanently ban, but we are lacking an option to do a long but not infinite ban, so we would like a 1 year option.

Describe the solution you'd like

Add a 14 days choice and a 1 year choice in the ban command.
This can be done simply by adding in "14 days" and "1 year" in the field DURATIONS of class BanCommand.
Note that TJ Bot doesn't support year based temporals, so a case "year", "years" in ModerationUtils.computeTemporaryData should be added.
It can be hard to test though.

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhance commandModify or improve an existing command or group of commands of the botenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions