feat(shard): ✨ Notify users when Payphone doesn't have permissions to read message history.

This commit is contained in:
2025-03-16 11:12:42 -03:00
parent ec3142f606
commit ab7fe3e828
+7
View File
@@ -293,6 +293,13 @@ class Calls(base.Cog):
except discord.errors.NotFound: except discord.errors.NotFound:
replied_message = None replied_message = None
except discord.errors.Forbidden:
replied_message = None
await self.bot.get_partial_messageable(other_channel).send(
"❌ **Payphone** is missing permissions to read messages from this channel. Make sure it's got `Read Message History` permissions."
)
if replied_message is not None: if replied_message is not None:
replied_message_content = self.bot.clean_message(replied_message) replied_message_content = self.bot.clean_message(replied_message)
replied_participant = await call.get_participant( replied_participant = await call.get_participant(