fix(shard): 🐛 Report message not working.
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user