Skip to content

Commit

Permalink
[Discord] Use datetime.UTC alias in timestamp context menu command
Browse files Browse the repository at this point in the history
Update to use datetime.UTC alias in timestamp context menu command
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 7a21e6d commit 9e24f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord/cogs/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ async def quote(interaction, message: discord.Message):
async def timestamp(interaction, message: discord.Message):
"""Timestamp of a message"""
time = discord.utils.snowflake_time(message.id).replace(
tzinfo = datetime.timezone.utc
tzinfo = datetime.UTC
)
await interaction.response.send_message(
embed = discord.Embed(
Expand Down

0 comments on commit 9e24f6a

Please sign in to comment.