From 622d9ad00f630cc59a0d1479c5a68b9b73b61083 Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Sat, 16 Nov 2024 00:28:31 -0300 Subject: [PATCH] fix(shard): :bug: Report message not working. --- payphone/bot.py | 6 +++--- payphone/cogs/calls/cog.py | 2 +- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/payphone/bot.py b/payphone/bot.py index d0d2b7a..640f90f 100644 --- a/payphone/bot.py +++ b/payphone/bot.py @@ -28,9 +28,6 @@ class Payphone(commands.AutoShardedBot): intents.guild_reactions = True intents.message_content = True - self.shard_ids = [constants.SHARD_ID] - self.shard_count = constants.SHARD_COUNT - super().__init__( intents=intents, command_prefix="p.", @@ -39,6 +36,9 @@ class Payphone(commands.AutoShardedBot): help_command=help_command.HelpCommand(), ) + self.shard_ids = [constants.SHARD_ID] + self.shard_count = constants.SHARD_COUNT + for cog in ["calls", "admin", "mods"]: self.load_extension(f"payphone.cogs.{cog}.cog") self.log.info("Loaded cog %s.", cog) diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 386f216..d4aa2fd 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -443,7 +443,7 @@ class Calls(base.Cog): Report a message in a call. """ - if self.bot.is_banned(ctx.author.id): + if await self.bot.is_banned(ctx.author.id): return await ctx.send_response( "❌ You're banned from using Payphone.", ephemeral=True ) diff --git a/pyproject.toml b/pyproject.toml index 24f1625..3763d55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "payphone" -version = "0.18.0" +version = "0.19.0" description = "Add your description here" readme = "README.md" requires-python = ">=3.12"