diff options
Diffstat (limited to 'discord/relationship.py')
| -rw-r--r-- | discord/relationship.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/discord/relationship.py b/discord/relationship.py index 575627e9..b301d420 100644 --- a/discord/relationship.py +++ b/discord/relationship.py @@ -52,8 +52,7 @@ class Relationship: def __repr__(self): return '<Relationship user={0.user!r} type={0.type!r}>'.format(self) - @asyncio.coroutine - def delete(self): + async def delete(self): """|coro| Deletes the relationship. @@ -64,10 +63,9 @@ class Relationship: Deleting the relationship failed. """ - yield from self._state.http.remove_relationship(self.user.id) + await self._state.http.remove_relationship(self.user.id) - @asyncio.coroutine - def accept(self): + async def accept(self): """|coro| Accepts the relationship request. e.g. accepting a @@ -79,4 +77,4 @@ class Relationship: Accepting the relationship failed. """ - yield from self._state.http.add_relationship(self.user.id) + await self._state.http.add_relationship(self.user.id) |