Adding check for people with no activities when nickname changes

pull/9/head
sgoudham 4 years ago
parent 8db1563d2b
commit e909e641b0

@ -571,8 +571,8 @@ class Moderation(Cog):
after_status = member_status[str(after.status)] after_status = member_status[str(after.status)]
# Getting activity # Getting activity
after_activity = f"{after.activity.emoji or ''} {after.activity.name}" after_activity = f"{after.activity.emoji or ''} {after.activity.name}" if after.activity else None
before_activity = f"{before.activity.emoji or ''} {before.activity.name}" before_activity = f"{before.activity.emoji or ''} {before.activity.name}" if before.activity else None
fields = [("Before", fields = [("Before",
f"**Nickname -->** {before.nick or None}\n" f"**Nickname -->** {before.nick or None}\n"

Loading…
Cancel
Save