| Commit message (Collapse) | Author | Lines |
|
It's not necessarily tied to infractions anymore.
|
|
When a delta is given, it is unknown what it's relative to. The function
has to assume it's relative to the POSIX Epoch. However, using a delta
for this would be quite odd, and would more likely be a mistake if
anything.
relativedelta support was broken anyway since it wasn't using the
total seconds represented by the delta.
|
|
First, the `args` attribute doesn't exist on enums. Even if it did, this
check only works if the argument given is an enum member (of any enum).
Such occurrence seems too rare to warrant an explicit check.
|
|
It's not used anywhere. Furthermore, a humanised duration with negative
values wouldn't make sense.
|
|
Use the latter where the former was being called with the relative
format type.
|
|
While the function is basically just a wrapper for discord_timestamp
now, it is very common to use the relative format. It's cumbersome
to import the format enum and pass it to discord_timestamp calls, so
keeping this function around will be nice.
|
|
In cases where many time utility functions were being imported, this
makes the imports shorter and cleaner. In other cases, the function
names read better when they're qualified with "time"; the extra context
it adds is helpful.
|
|
It's not used anywhere and hasn't been for a very long time.
|
|
|
|
|
|
Not doing so could cause an error where get_channel would return none for the mod logs channel.
|
|
- Add infraction id to infraction edit modlog
- Add missing colon in "infraction applied" message
- Utilise defined infraction id variable instead of indexing dict again
|
|
Co-authored-by: Xithrius <[email protected]>
|