fixed serverinfo I think

This commit is contained in:
Seaswimmer 2023-03-03 13:55:03 -05:00
parent 3f57d81fb5
commit 0accd80560

View file

@ -45,9 +45,10 @@ class Info(commands.Cog):
Default to False. Default to False.
""" """
guild = ctx.guild guild = ctx.guild
timestamp = int(datetime.timestamp(guild.created_at))
created_at = _("Created on {date_and_time}. That's {relative_time}!").format( created_at = _("Created on {date_and_time}. That's {relative_time}!").format(
date_and_time=discord.utils.format_dt(guild.created_at), date_and_time=f"<t:{timestamp}>",
relative_time=discord.utils.format_dt(guild.created_at, "R"), relative_time=f"<t:{timestamp}:R>",
) )
online = humanize_number( online = humanize_number(
len([m.status for m in guild.members if m.status != discord.Status.offline]) len([m.status for m in guild.members if m.status != discord.Status.offline])