aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-12-11 01:17:01 -0800
committerGravatar MarkKoz <[email protected]>2019-12-11 01:17:01 -0800
commit98b018dcc7325999756f8f46c5aa06f316acd2cc (patch)
treea226c167855e2860f09f8db1c1723cd7c666a4b2
parentModLog: exclude most channel attributes from voice state diff (diff)
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.
-rw-r--r--bot/cogs/moderation/modlog.py4
1 files 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)",
)