mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[p]userinfo: Handle target w/ 'None' Member.joined_at (#2426)
This commit is contained in:
parent
8f8c52d8c4
commit
99ad01ae0d
@ -1391,8 +1391,12 @@ class Mod(commands.Cog):
|
||||
|
||||
joined_at = user.joined_at if not is_special else special_date
|
||||
since_created = (ctx.message.created_at - user.created_at).days
|
||||
if joined_at is not None:
|
||||
since_joined = (ctx.message.created_at - joined_at).days
|
||||
user_joined = joined_at.strftime("%d %b %Y %H:%M")
|
||||
else:
|
||||
since_joined = "?"
|
||||
user_joined = "Unknown"
|
||||
user_created = user.created_at.strftime("%d %b %Y %H:%M")
|
||||
voice_state = user.voice
|
||||
member_number = (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user