diff options
author | 2022-12-11 11:25:28 +0100 | |
---|---|---|
committer | 2022-12-11 11:25:28 +0100 | |
commit | c85ef1648ce54ec9f500361fcab5add83e47c837 (patch) | |
tree | b2402670c96f97849d3954570fbf20a8187a9e4a | |
parent | Merge pull request #2361 from python-discord/dependabot/pip/certifi-2022.12.7 (diff) | |
parent | Merge branch 'main' into update-modlog-for-threads (diff) |
Merge pull request #2357 from python-discord/update-modlog-for-threads
Update modlog for threads
-rw-r--r-- | bot/exts/moderation/modlog.py | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index d916d1f4d..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,24 +844,8 @@ class ModLog(Cog, name="ModLog"): ( f"Thread {thread.mention} ({thread.name}, `{thread.id}`) from {thread.parent.mention} " f"(`{thread.parent.id}`) deleted" - ) - ) - - @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" - ) + ), + channel_id=Channels.message_log, ) @Cog.listener() |