diff options
| author | 2020-02-15 18:22:30 -0800 | |
|---|---|---|
| committer | 2020-02-15 18:22:30 -0800 | |
| commit | b4d870add68fafa00420a1d75136b6264be3ff0a (patch) | |
| tree | d2c72190d23b782078cae2b06bb8dde952830ba0 /tests/__init__.py | |
| parent | Merge pull request #752 from python-discord/infr-edit-permanent-fix (diff) | |
Utils: refactor format_infraction_with_duration and support absolute val
The absolute value is useful for preventing negative values in the case
that date_to is in the past relative to date_from.
* Add an absolute parameter to take the absolute value of the duration
* Rename expiry to date_to
* Rewrite the docstring
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions