From 22bce7366b4ffe74183fbb5501b4041d5e8069a5 Mon Sep 17 00:00:00 2001 From: grey-cat-1908 <61203964+grey-cat-1908@users.noreply.github.com> Date: Sat, 9 Apr 2022 11:04:54 +0300 Subject: [PATCH] fix pin and unpin method docstrings --- melisa/models/message/message.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/melisa/models/message/message.py b/melisa/models/message/message.py index c2f23ee..f5d0e18 100644 --- a/melisa/models/message/message.py +++ b/melisa/models/message/message.py @@ -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 ----------