From b6f3125d30c5261bfaf107ab56985719bb166a4a Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sun, 20 May 2018 00:42:16 -0800 Subject: [PATCH] Switch to asyncpg --- exts/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exts/utils.py b/exts/utils.py index d722004..c064f2a 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -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):