async def unpin(self, *, reason: Optional[str]=None) -> None:
    '|coro|\n\n        Unpins the message.\n\n        You must have the :attr:`~Permissions.manage_messages` permission to do\n        this in a non-private channel context.\n\n        Parameters\n        -----------\n        reason: Optional[:class:`str`]\n            The reason for unpinning the message. Shows up on the audit log.\n\n            .. versionadded:: 1.4\n\n        Raises\n        -------\n        Forbidden\n            You do not have permissions to unpin the message.\n        NotFound\n            The message or channel was not found or deleted.\n        HTTPException\n            Unpinning the message failed.\n        '
    (await self._state.http.unpin_message(self.channel.id, self.id, reason=reason))
    self.pinned = False
|coro|

Unpins the message.

You must have the :attr:`~Permissions.manage_messages` permission to do
this in a non-private channel context.

Parameters
-----------
reason: Optional[:class:`str`]
    The reason for unpinning the message. Shows up on the audit log.

    .. versionadded:: 1.4

Raises
-------
Forbidden
    You do not have permissions to unpin the message.
NotFound
    The message or channel was not found or deleted.
HTTPException
    Unpinning the message failed.
async def unpin(self, *, reason: Optional[str]=None) -> None:
    '|coro|\n\n        Unpins the message.\n\n        You must have the :attr:`~Permissions.manage_messages` permission to do\n        this in a non-private channel context.\n\n        Parameters\n        -----------\n        reason: Optional[:class:`str`]\n            The reason for unpinning the message. Shows up on the audit log.\n\n            .. versionadded:: 1.4\n\n        Raises\n        -------\n        Forbidden\n            You do not have permissions to unpin the message.\n        NotFound\n            The message or channel was not found or deleted.\n        HTTPException\n            Unpinning the message failed.\n        '
    (await self._state.http.unpin_message(self.channel.id, self.id, reason=reason))
    self.pinned = False