testing a change to userinfo
This commit is contained in:
parent
9247d7f74f
commit
53b7cf90ab
1 changed files with 5 additions and 12 deletions
15
info/info.py
15
info/info.py
|
@ -362,16 +362,9 @@ class Info(commands.Cog):
|
||||||
if not member:
|
if not member:
|
||||||
member = author
|
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]
|
roles = member.roles[-1:0:-1]
|
||||||
names, nicks = await self.get_names_and_nicks(member)
|
names, nicks = await self.get_names_and_nicks(member)
|
||||||
|
|
||||||
if is_special:
|
|
||||||
joined_at = special_date
|
|
||||||
else:
|
|
||||||
joined_at = member.joined_at
|
joined_at = member.joined_at
|
||||||
voice_state = member.voice
|
voice_state = member.voice
|
||||||
member_number = (
|
member_number = (
|
||||||
|
@ -382,13 +375,13 @@ class Info(commands.Cog):
|
||||||
)
|
)
|
||||||
|
|
||||||
created_on = (
|
created_on = (
|
||||||
f"{discord.utils.format_dt(member.created_at)}\n"
|
f"<t:{int(datetime.timestamp(member.created_at))}>\n"
|
||||||
f"{discord.utils.format_dt(member.created_at, 'R')}"
|
f"<t:{int(datetime.timestamp(member.created_at))}:R>"
|
||||||
)
|
)
|
||||||
if joined_at is not None:
|
if joined_at is not None:
|
||||||
joined_on = (
|
joined_on = (
|
||||||
f"{discord.utils.format_dt(joined_at)}\n"
|
f"<t:{int(datetime.timestamp(joined_at))}>\n"
|
||||||
f"{discord.utils.format_dt(joined_at, 'R')}"
|
f"<t:{int(datetime.timestamp(joined_at))}:R>"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
joined_on = _("Unknown")
|
joined_on = _("Unknown")
|
||||||
|
|
Loading…
Reference in a new issue