Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix: fix 3.11 enum str behaviour (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordOfPolls authored Nov 19, 2022
1 parent 13c592e commit 6278997
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions naff/models/discord/timestamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class TimestampStyles(str, Enum):
LongDateTime = "F"
RelativeTime = "R"

def __str__(self) -> str:
return self.value


class Timestamp(datetime):
"""
Expand Down

0 comments on commit 6278997

Please sign in to comment.