aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/utils.py
diff options
context:
space:
mode:
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}>"