Remove messages reference

This commit is contained in:
Jeremy Zhang 2018-07-18 00:49:32 +00:00
parent 0c1b706c28
commit ee051074a7

View File

@ -67,7 +67,6 @@ class DatabaseInterface(object):
async def remove_guild(self, guild): async def remove_guild(self, guild):
gui = await Guilds.get(int(guild.id)) gui = await Guilds.get(int(guild.id))
if gui: if gui:
await Messages.delete.where(Messages.guild_id == int(guild.id)).gino.status()
await gui.delete() await gui.delete()
async def ban_unauth_user_by_query(self, guild_id, placer_id, username, discriminator): async def ban_unauth_user_by_query(self, guild_id, placer_id, username, discriminator):