Fix server variable for the last commit

Because fixing a bug shouldn't introduce another one.
This commit is contained in:
Jeremy "EndenDragon" Zhang 2018-01-14 23:53:28 -08:00 committed by GitHub
parent 6c351c98fe
commit 36b31675e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ class Titan(discord.Client):
for member in guild.members:
await self.database.update_guild_member(member, True, False)
if guild.me.server_permissions.ban_members:
banned = await self.get_bans(message.server)
banned = await self.get_bans(guild)
for ban in banned:
member = discord.Member(user={
"username": ban.name,