|
@ -37,7 +37,7 @@ from .asset import Asset |
|
|
from .utils import MISSING |
|
|
from .utils import MISSING |
|
|
from .user import BaseUser, User, _UserTag |
|
|
from .user import BaseUser, User, _UserTag |
|
|
from .permissions import Permissions |
|
|
from .permissions import Permissions |
|
|
from .enums import RelationshipAction, Status, try_enum |
|
|
from .enums import Status, try_enum |
|
|
from .errors import ClientException |
|
|
from .errors import ClientException |
|
|
from .colour import Colour |
|
|
from .colour import Colour |
|
|
from .object import Object |
|
|
from .object import Object |
|
@ -1108,20 +1108,6 @@ class Member(discord.abc.Messageable, discord.abc.Connectable, _UserTag): |
|
|
return utils.utcnow() < self.timed_out_until |
|
|
return utils.utcnow() < self.timed_out_until |
|
|
return False |
|
|
return False |
|
|
|
|
|
|
|
|
async def send_friend_request(self) -> None: |
|
|
|
|
|
"""|coro| |
|
|
|
|
|
|
|
|
|
|
|
Sends the member a friend request. |
|
|
|
|
|
|
|
|
|
|
|
Raises |
|
|
|
|
|
------- |
|
|
|
|
|
Forbidden |
|
|
|
|
|
Not allowed to send a friend request to the member. |
|
|
|
|
|
HTTPException |
|
|
|
|
|
Sending the friend request failed. |
|
|
|
|
|
""" |
|
|
|
|
|
await self._state.http.add_relationship(self._user.id, action=RelationshipAction.send_friend_request) |
|
|
|
|
|
|
|
|
|
|
|
async def profile( |
|
|
async def profile( |
|
|
self, |
|
|
self, |
|
|
*, |
|
|
*, |
|
|