testing a change to userinfo

This commit is contained in:
Seaswimmer 2023-03-03 15:10:09 -05:00
parent 9247d7f74f
commit 53b7cf90ab

View file

@ -362,16 +362,9 @@ class Info(commands.Cog):
if not member:
member = author
# A special case for a special someone :^)
special_date = datetime.datetime(2016, 1, 10, 6, 8, 4, 443000, datetime.timezone.utc)
is_special = member.id == 96130341705637888 and guild.id == 133049272517001216
roles = member.roles[-1:0:-1]
names, nicks = await self.get_names_and_nicks(member)
if is_special:
joined_at = special_date
else:
joined_at = member.joined_at
voice_state = member.voice
member_number = (
@ -382,13 +375,13 @@ class Info(commands.Cog):
)
created_on = (
f"{discord.utils.format_dt(member.created_at)}\n"
f"{discord.utils.format_dt(member.created_at, 'R')}"
f"<t:{int(datetime.timestamp(member.created_at))}>\n"
f"<t:{int(datetime.timestamp(member.created_at))}:R>"
)
if joined_at is not None:
joined_on = (
f"{discord.utils.format_dt(joined_at)}\n"
f"{discord.utils.format_dt(joined_at, 'R')}"
f"<t:{int(datetime.timestamp(joined_at))}>\n"
f"<t:{int(datetime.timestamp(joined_at))}:R>"
)
else:
joined_on = _("Unknown")