aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/utils.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-02 16:12:08 +0000
committerGravatar Chris Lovering <[email protected]>2024-02-02 16:12:08 +0000
commit5fd87154cbf326068b181f366286a635a7eaa119 (patch)
tree709446f42d8981e83bca8b17f4fda280d477c7e2 /arthur/utils.py
parentAdd ruff isort configuration (diff)
Enable all ruff rules
Diffstat (limited to 'arthur/utils.py')
-rw-r--r--arthur/utils.py4
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}>"