aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2019-10-11 21:57:02 +0800
committerGravatar kosayoda <[email protected]>2019-10-11 21:57:02 +0800
commitaf1a801fa58cfc0b122ee2145122d6f36a414811 (patch)
tree78884cd72d986bb8d257907bf0a78327eedcd078
parentMerge pull request #505 from python-discord/user-log-display-name-changes (diff)
Log member_ban event to #user-log
-rw-r--r--bot/cogs/moderation/infractions.py1
-rw-r--r--bot/cogs/moderation/modlog.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/bot/cogs/moderation/infractions.py b/bot/cogs/moderation/infractions.py
index 2c075f436..76f39d13c 100644
--- a/bot/cogs/moderation/infractions.py
+++ b/bot/cogs/moderation/infractions.py
@@ -261,7 +261,6 @@ class Infractions(Scheduler, commands.Cog):
if infraction is None:
return
- self.mod_log.ignore(Event.member_ban, user.id)
self.mod_log.ignore(Event.member_remove, user.id)
action = ctx.guild.ban(user, reason=reason, delete_message_days=0)
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index 92e9b0ef1..118503517 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -353,7 +353,7 @@ class ModLog(Cog, name="ModLog"):
@Cog.listener()
async def on_member_ban(self, guild: discord.Guild, member: UserTypes) -> None:
- """Log ban event to mod log."""
+ """Log ban event to user log."""
if guild.id != GuildConstant.id:
return
@@ -365,7 +365,7 @@ class ModLog(Cog, name="ModLog"):
Icons.user_ban, Colours.soft_red,
"User banned", f"{member.name}#{member.discriminator} (`{member.id}`)",
thumbnail=member.avatar_url_as(static_format="png"),
- channel_id=Channels.modlog
+ channel_id=Channels.userlog
)
@Cog.listener()