fix(shard): 🐛 Report message not working.

This commit is contained in:
Nyeki.py
2024-11-16 00:28:31 -03:00
parent a0893ce834
commit 622d9ad00f
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -28,9 +28,6 @@ class Payphone(commands.AutoShardedBot):
intents.guild_reactions = True intents.guild_reactions = True
intents.message_content = True intents.message_content = True
self.shard_ids = [constants.SHARD_ID]
self.shard_count = constants.SHARD_COUNT
super().__init__( super().__init__(
intents=intents, intents=intents,
command_prefix="p.", command_prefix="p.",
@@ -39,6 +36,9 @@ class Payphone(commands.AutoShardedBot):
help_command=help_command.HelpCommand(), help_command=help_command.HelpCommand(),
) )
self.shard_ids = [constants.SHARD_ID]
self.shard_count = constants.SHARD_COUNT
for cog in ["calls", "admin", "mods"]: for cog in ["calls", "admin", "mods"]:
self.load_extension(f"payphone.cogs.{cog}.cog") self.load_extension(f"payphone.cogs.{cog}.cog")
self.log.info("Loaded cog %s.", cog) self.log.info("Loaded cog %s.", cog)
+1 -1
View File
@@ -443,7 +443,7 @@ class Calls(base.Cog):
Report a message in a call. 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( return await ctx.send_response(
"❌ You're banned from using Payphone.", ephemeral=True "❌ You're banned from using Payphone.", ephemeral=True
) )
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "payphone" name = "payphone"
version = "0.18.0" version = "0.19.0"
description = "Add your description here" description = "Add your description here"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"