attempt to fix the db query which populates the prefix cache
@@ -19,7 +19,7 @@ class Database(commands.Cog):
return dict((r[0], r[1],) for r in lang_records) # needs to be a dict
async def fetch_all_guild_prefixes(self):
- prefix_records = await self.db.fetch('SELECT gid, prefix FROM guilds WHERE prefix != $1 AND prefix != $2', None, '/')
+ prefix_records = await self.db.fetch('SELECT gid, prefix FROM guilds WHERE prefix NOT IN ($1, $2)', None, '/')
return dict((r[0], r[1],) for r in prefix_records) # needs to be a dict
async def fetch_guild(self, gid):
