From 47a027a3cccd31e5bcf6f28ee59e9d87593deff6 Mon Sep 17 00:00:00 2001 From: tookender Date: Sun, 25 Aug 2024 21:06:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=81=20Replace=20ctx.client=20with=20ct?= =?UTF-8?q?x.box?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/config/levelling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/config/levelling.py b/extensions/config/levelling.py index be49156..fb0a8bf 100644 --- a/extensions/config/levelling.py +++ b/extensions/config/levelling.py @@ -144,13 +144,13 @@ async def view_message(self, interaction: Interaction, button: discord.ui.Button async def update_message(ctx, edit: Optional[bool] = True): try: if ctx.guild: - data = await ctx.client.pool.fetchrow( + data = await ctx.bot.pool.fetchrow( "SELECT levelling_enabled, levelling_announce, levelling_channel, levelling_message, levelling_multiplier FROM guilds WHERE guild_id = $1", ctx.guild.id, ) if not data: - await ctx.client.pool.execute("INSERT INTO guilds(guild_id) VALUES ($1)", ctx.guild.id) + await ctx.bot.pool.execute("INSERT INTO guilds(guild_id) VALUES ($1)", ctx.guild.id) await update_message(ctx, edit) bool_emojis = {