From 69a0475eddd053d07bb61bb10c7769502135e4f9 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sun, 20 May 2018 00:43:31 -0800 Subject: [PATCH] Switch to asyncpg --- exts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exts/utils.py b/exts/utils.py index c064f2a..430962a 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -456,8 +456,8 @@ class Utils: def is_me(message): if message.author == self.bot.user: return True - prefixes = self.bot.db_con.fetchval('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 = $1', + ctx.guild.id) if prefixes: for prefix in prefixes: if message.content.startswith(prefix):