Skip to content

Commit

Permalink
Add timestamp parsing into discord datetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Aug 23, 2023
1 parent f81ba9b commit fb3a793
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions novus/models/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
parse_timestamp,
try_id,
try_snowflake,
DiscordDatetime,
)
from .abc import Hashable
from .channel import Channel
Expand Down Expand Up @@ -177,8 +178,8 @@ class Message(Hashable):
author: User | GuildMember
guild: BaseGuild | None
content: str
timestamp: dt
edited_timestamp: dt | None
timestamp: DiscordDatetime
edited_timestamp: DiscordDatetime | None
tts: bool
mention_everyone: bool
mentions: list[User]
Expand Down

0 comments on commit fb3a793

Please sign in to comment.