Skip to content

Commit

Permalink
date is now back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
pieckenst committed Aug 28, 2024
1 parent cef4095 commit 4e8792d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ async def color(self, ctx, *, color: utils.ColorConverter = None):

@commands.command(brief="Tells a user's creation time.")
async def created_at(self, ctx, *, user: utils.SuperConverter = commands.Author):
creation_info = f"{discord.utils.format_dt(user.created_at, style='D')}\n{discord.utils.format_dt(user.created_at, style='T')}"
creation_info = f"{discord.utils.format_dt(user.created_at, style='d')}\n{discord.utils.format_dt(user.created_at, style='T')}"
await ctx.send(
f"Name: {user}\n"
f"Mention: {user.mention} was created:\n"
Expand All @@ -326,7 +326,7 @@ async def snowflake_info(self, ctx, *, snowflake: typing.Optional[utils.ObjectPl
embed = discord.Embed(title="❄️ Snowflake Info:", color=discord.Color.blue())
embed.add_field(
name="Created At:",
value=f"{discord.utils.format_dt(snowflake.created_at, style='D')}\n{discord.utils.format_dt(snowflake.created_at, style='T')}",
value=f"{discord.utils.format_dt(snowflake.created_at, style='d')}\n{discord.utils.format_dt(snowflake.created_at, style='T')}",
)
embed.add_field(name="Worker ID:", value=str(snowflake.worker_id))
embed.add_field(name="Process ID:", value=str(snowflake.process_id))
Expand All @@ -348,7 +348,7 @@ async def fake_token(self, ctx):
title="Newly Generated Fake Token",
description=f"ID: `{discord_object.id}`\n"
f"Created at:\n"
f"{discord.utils.format_dt(discord_object.created_at, style='D')}\n"
f"{discord.utils.format_dt(discord_object.created_at, style='d')}\n"
f"{discord.utils.format_dt(discord_object.created_at, style='T')}",
)
embed.add_field(name="Generated Token:", value=f"`{first_bit}.{second_bit}.{last_bit}`")
Expand Down

0 comments on commit 4e8792d

Please sign in to comment.