diff options
| author | Steve C <[email protected]> | 2018-05-10 03:34:13 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-05-18 20:25:54 -0400 |
| commit | 0e945915b766991c5008077575def82a72e0d7ff (patch) | |
| tree | 36d856afa258a8941720b7d7f33618462592d06d /discord/message.py | |
| parent | abc.GuildChannel.set_permissions can raise NotFound. (diff) | |
| download | discord.py-0e945915b766991c5008077575def82a72e0d7ff.tar.xz discord.py-0e945915b766991c5008077575def82a72e0d7ff.zip | |
Fixes various documentation errors/inconsistencies
Mostly dealing with permissions, also fixes Raw Events inclusion.
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 20 |
1 files changed, 12 insertions, 8 deletions
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 -------- |