From 98b018dcc7325999756f8f46c5aa06f316acd2cc Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Wed, 11 Dec 2019 01:17:01 -0800 Subject: ModLog: exclude afk attribute from voice state log The log will already show that the channel changes to the AFK channel so showing the attribute change is redundant. If the channel were not clearly named "AFK" then it might've made sense to keep the attribute. --- bot/cogs/moderation/modlog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index 3f42388b1..98d9c546f 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -25,7 +25,7 @@ CHANNEL_CHANGES_SUPPRESSED = ("_overwrites", "position") MEMBER_CHANGES_SUPPRESSED = ("status", "activities", "_client_status", "nick") ROLE_CHANGES_UNSUPPORTED = ("colour", "permissions") -VOICE_STATE_ATTRIBUTES = {"self_video": "Broadcasting", "afk": "AFK", "channel.name": "Channel"} +VOICE_STATE_ATTRIBUTES = {"self_video": "Broadcasting", "channel.name": "Channel"} class ModLog(Cog, name="ModLog"): @@ -773,7 +773,7 @@ class ModLog(Cog, name="ModLog"): diff = DeepDiff( before, after, - exclude_paths="root.session_id", + exclude_paths=("root.session_id", "root.afk"), exclude_regex_paths=r"root\.channel\.(?!name)", ) -- cgit v1.2.3