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"