aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2021-08-15 23:51:02 +0300
committerGravatar mbaruh <[email protected]>2021-08-15 23:51:02 +0300
commita5b761791f1162f2854775d87b00c687bf397a0f (patch)
tree68c0da8b87fa2fd94094af20a0cde8b792cd1ab8
parentDocstring corrections (diff)
Add team name to audit log reason
Interestingly enough, the reason doesn't seem to be displayed for channel permission overrides.
Diffstat (limited to '')
-rw-r--r--bot/exts/events/code_jams/_cog.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/exts/events/code_jams/_cog.py b/bot/exts/events/code_jams/_cog.py
index b2ea97c38..64f886f0a 100644
--- a/bot/exts/events/code_jams/_cog.py
+++ b/bot/exts/events/code_jams/_cog.py
@@ -202,7 +202,11 @@ class CodeJams(commands.Cog):
await ctx.send(":x: I can't find the team channel for this member.")
return
- await channel.set_permissions(member, overwrite=None, reason="Participant removed from the team.")
+ await channel.set_permissions(
+ member,
+ overwrite=None,
+ reason=f"Participant removed from the team {self.team_name(channel)}."
+ )
await ctx.send(f"Removed the participant from `{self.team_name(channel)}`.")
@staticmethod