fix pin and unpin method docstrings

This commit is contained in:
grey-cat-1908 2022-04-09 11:04:54 +03:00 committed by GitHub
parent 29512bbec8
commit 22bce7366b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,12 +203,12 @@ class Message(APIModelBase):
async def pin(
self, *, reason: Optional[str] = None
) -> None:
):
"""|coro|
Pins the message.
You must have the `MANAGE_MESSAGES` permission to do this in a non-private channel context.
You must have the ``MANAGE_MESSAGES`` permission to do this in a non-private channel context.
Parameters
----------
@ -232,12 +232,12 @@ class Message(APIModelBase):
async def unpin(
self, *, reason: Optional[str] = None
) -> None:
):
"""|coro|
Unpins the message.
You must have the `MANAGE_MESSAGES` permission to do this in a non-private channel context.
You must have the ``MANAGE_MESSAGES`` permission to do this in a non-private channel context.
Parameters
----------