Skip to content

Improve ban command purge duration behavior #520

Description

@hyperneutrino

The ban command currently just accepts a number of days. If an invalid number of days is provided (e.g. more than 7), a generic fatal error will be shown and the command will crash and be logged.

Now that Discord allows bans to purge any number of seconds between 0 and 7 days, we should improve this to parse the user's input to determine exactly how much time, and a proper error messages should be shown for invalid inputs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementImprovements on existing work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions