fix(shard): 🐛 Allow reporting messages sent *to* Payphone (instead of *by*).

This commit is contained in:
2025-03-15 12:03:53 -03:00
parent 2e9b0cb19e
commit e59c1665bf
4 changed files with 19 additions and 12 deletions
+9 -4
View File
@@ -475,10 +475,7 @@ class Calls(base.Cog):
"❌ You're banned from using Payphone.", ephemeral=True
)
message_id = await self.bot.call_handler.get_original_message_id(message.id)
author_id = await self.bot.call_handler.get_message_author_id(message_id)
if author_id is None:
if not await self.bot.call_handler.get_message(message.id):
return await ctx.send_response(
(
"❌ More than 15 minutes have passed since this message was sent.\n"
@@ -487,6 +484,14 @@ class Calls(base.Cog):
ephemeral=True,
)
if message.author.bot:
message_id = await self.bot.call_handler.get_original_message_id(message.id)
author_id = await self.bot.call_handler.get_message_author_id(message_id)
else:
message_id = message.id
author_id = message.author.id
await ctx.send_response("✅ The message has been reported.", ephemeral=True)
await models.Report.update_or_create(