feat(shard): ✨ Notify users when Payphone doesn't have permissions to read message history.
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user