diff options
author | 2024-02-02 16:12:08 +0000 | |
---|---|---|
committer | 2024-02-02 16:12:08 +0000 | |
commit | 5fd87154cbf326068b181f366286a635a7eaa119 (patch) | |
tree | 709446f42d8981e83bca8b17f4fda280d477c7e2 /arthur/utils.py | |
parent | Add ruff isort configuration (diff) |
Enable all ruff rules
Diffstat (limited to 'arthur/utils.py')
-rw-r--r-- | arthur/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arthur/utils.py b/arthur/utils.py index 07e0f19..f66ecd4 100644 --- a/arthur/utils.py +++ b/arthur/utils.py @@ -13,6 +13,6 @@ def generate_error_message( return f"{emote} **{title}** {description}" -def datetime_to_discord(time: datetime, format: str = "f") -> str: +def datetime_to_discord(time: datetime, date_format: str = "f") -> str: """Convert a datetime object to a Discord timestamp.""" - return f"<t:{int(time.timestamp())}:{format}>" + return f"<t:{int(time.timestamp())}:{date_format}>" |