From 00710789e98617ca5219eefbe5a17490eaf440c8 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 7 Dec 2022 14:48:27 +0000 Subject: Remove thread creation logging --- bot/exts/moderation/modlog.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index d916d1f4d..2c0d45da0 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -846,23 +846,6 @@ class ModLog(Cog, name="ModLog"): ) ) - @Cog.listener() - async def on_thread_create(self, thread: Thread) -> None: - """Log thread creation.""" - if self.is_channel_ignored(thread.id): - log.trace("Ignoring creation of thread %s (%d)", thread.mention, thread.id) - return - - await self.send_log_message( - Icons.hash_green, - Colours.soft_green, - "Thread created", - ( - f"Thread {thread.mention} ({thread.name}, `{thread.id}`) from {thread.parent.mention} " - f"(`{thread.parent.id}`) created" - ) - ) - @Cog.listener() async def on_voice_state_update( self, -- cgit v1.2.3 From 082308949f48ce792d080baa106046360bbcfb02 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 7 Dec 2022 14:49:21 +0000 Subject: Move thread logging to message change log --- bot/exts/moderation/modlog.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index 2c0d45da0..eeaf69139 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -826,7 +826,8 @@ class ModLog(Cog, name="ModLog"): ( f"Thread {after.mention} ({after.name}, `{after.id}`) from {after.parent.mention} " f"(`{after.parent.id}`) was {action}" - ) + ), + channel_id=Channels.message_log, ) @Cog.listener() @@ -843,7 +844,8 @@ class ModLog(Cog, name="ModLog"): ( f"Thread {thread.mention} ({thread.name}, `{thread.id}`) from {thread.parent.mention} " f"(`{thread.parent.id}`) deleted" - ) + ), + channel_id=Channels.message_log, ) @Cog.listener() -- cgit v1.2.3