Fix bug in on_member_remove

This commit is contained in:
Dustin Pianalto 2019-12-15 00:31:43 -09:00
parent b1c99a380d
commit 7500a17c85

View File

@ -71,7 +71,8 @@ class UserEvents(commands.Cog):
async def on_member_remove(self, member):
data = {
'id': member.id,
'guilds': [f'{self.bot.api_base}/guilds/{member.guild.id}/']
# Because this doesn't go through the serializer we just use the id for the guild
'guilds': [str(member.guild.id)]
}
resp = await self.bot.aio_session.patch(f'{self.bot.api_base}/users/{member.id}/',
headers=self.bot.auth_header,