async def block(self):
        """|coro|

        Blocks the user.

        .. note::

            This only applies to non-bot accounts.

        Raises
        -------
        Forbidden
            Not allowed to block this user.
        HTTPException
            Blocking the user failed.
        """

        await self._state.http.add_relationship(self.id, type=RelationshipType.blocked.value)
async def block ( self ) : await self . _state . http . add_relationship ( self . id , type = RelationshipType . blocked . value )
|coro|

        Blocks the user.

        .. note::

            This only applies to non-bot accounts.

        Raises
        -------
        Forbidden
            Not allowed to block this user.
        HTTPException
            Blocking the user failed.