diff options
| author | 2019-09-14 21:53:57 +0200 | |
|---|---|---|
| committer | 2019-09-14 21:53:57 +0200 | |
| commit | ea2a30bc7b13b2d5da5a1a997d9279975e0e7e8f (patch) | |
| tree | e7682adad70e3ba9af3617fcb07c00aea0da0e2d | |
| parent | Fixes a sneaky genexp exhaustion bug in @without_role. (diff) | |
Fixes a bug syncing roles for members who leave.
The event that was supposed to handle this was called
on_member_leave instead of on_member_remove, so the
even was never called when it should have been.
This commit renames the method.
| -rw-r--r-- | bot/cogs/sync/cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/sync/cog.py b/bot/cogs/sync/cog.py index 79177b69e..ec6c5f447 100644 --- a/bot/cogs/sync/cog.py +++ b/bot/cogs/sync/cog.py @@ -118,7 +118,7 @@ class Sync: # If we got `404`, the user is new. Create them. await self.bot.api_client.post('bot/users', json=packed) - async def on_member_leave(self, member: Member) -> None: + async def on_member_remove(self, member: Member) -> None: """Updates the user information when a member leaves the guild.""" await self.bot.api_client.put( f'bot/users/{member.id}', |