Skip to content

Commit 36b9fbd

Browse files
committed
update docstrings about the new pin messages permission
1 parent 6fb35ca commit 36b9fbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

disnake/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ async def unpin(self, *, reason: Optional[str] = None) -> None:
21802180
21812181
Unpins the message.
21822182
2183-
You must have the :attr:`~Permissions.manage_messages` permission to do
2183+
You must have the :attr:`~Permissions.pin_messages` permission to do
21842184
this in a non-private channel context.
21852185
21862186
Parameters

disnake/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ def send_tts_messages(self) -> int:
760760

761761
@flag_value
762762
def manage_messages(self) -> int:
763-
""":class:`bool`: Returns ``True`` if a user can delete or pin messages in a text channel.
763+
""":class:`bool`: Returns ``True`` if a user can delete messages in a text channel.
764764
765765
.. note::
766766

0 commit comments

Comments
 (0)