aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-04-07 01:11:37 +0200
committerGravatar Numerlor <[email protected]>2020-04-09 20:26:56 +0200
commit25c15171020613f0123ed83654adad5c7c584d84 (patch)
tree9d61a59a7fcefc2667611b5edee1ed49f7ee539d
parentReverse help_channel_user pairs. (diff)
Delete overwrite instead of send_messages permission.
Only resetting the permission caused the overwrites for the users to remain on the category, potentially piling up and causing further issues.
-rw-r--r--bot/cogs/help_channels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index dbe7cedc1..f49149d8a 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -629,7 +629,7 @@ class HelpChannels(Scheduler, commands.Cog):
log.trace(f"Channel #{channel.name} ({channel.id}) not in help session cache, permissions unchanged.")
return
log.trace(f"Resetting send permissions for {member} ({member.id}).")
- await self.available_category.set_permissions(member, send_messages=None)
+ await self.available_category.set_permissions(member, overwrite=None)
# Cancel task, ignore no task existing when the claim time passed but idle time has not.
self.cancel_task(member.id, ignore_missing=True)