Switch to asyncpg
This commit is contained in:
parent
336c8a6906
commit
b6f3125d30
@ -456,7 +456,8 @@ class Utils:
|
||||
def is_me(message):
|
||||
if message.author == self.bot.user:
|
||||
return True
|
||||
prefixes = self.bot.con.one('select prefix from guild_config where guild_id = %(id)s', {'id': ctx.guild.id})
|
||||
prefixes = self.bot.db_con.fetchval('select prefix from guild_config where guild_id = %(id)s',
|
||||
{'id': ctx.guild.id})
|
||||
if prefixes:
|
||||
for prefix in prefixes:
|
||||
if message.content.startswith(prefix):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user