Logging only custom activities

pull/9/head
sgoudham 4 years ago
parent b0cd3b8f3d
commit 63146944ce

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

Loading…
Cancel
Save