From 0e945915b766991c5008077575def82a72e0d7ff Mon Sep 17 00:00:00 2001 From: Steve C Date: Thu, 10 May 2018 03:34:13 -0400 Subject: Fixes various documentation errors/inconsistencies Mostly dealing with permissions, also fixes Raw Events inclusion. --- discord/message.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'discord/message.py') diff --git a/discord/message.py b/discord/message.py index e16cc920..55a1ee3f 100644 --- a/discord/message.py +++ b/discord/message.py @@ -606,8 +606,10 @@ class Message: def pin(self): """|coro| - Pins the message. You must have :attr:`~Permissions.manage_messages` - permissions to do this in a non-private channel context. + Pins the message. + + You must have the :attr:`~Permissions.manage_messages` permission to do + this in a non-private channel context. Raises ------- @@ -627,8 +629,10 @@ class Message: def unpin(self): """|coro| - Unpins the message. You must have :attr:`~Permissions.manage_messages` - permissions to do this in a non-private channel context. + Unpins the message. + + You must have the :attr:`~Permissions.manage_messages` permission to do + this in a non-private channel context. Raises ------- @@ -651,8 +655,9 @@ class Message: The emoji may be a unicode emoji or a custom guild :class:`Emoji`. - You must have the :attr:`~Permissions.add_reactions` and - :attr:`~Permissions.read_message_history` permissions to use this. + You must have the :attr:`~Permissions.read_message_history` permission + to use this. If nobody else has reacted to the message using this + emoji, the :attr:`~Permissions.add_reactions` permission is required. Parameters ------------ @@ -741,8 +746,7 @@ class Message: Removes all the reactions from the message. - You need :attr:`~Permissions.manage_messages` permission - to use this. + You need the :attr:`~Permissions.manage_messages` permission to use this. Raises -------- -- cgit v1.2.3