|
|
@ -2546,7 +2546,7 @@ class Client: |
|
|
|
) |
|
|
|
return Invite.from_incomplete(state=self._connection, data=data) |
|
|
|
|
|
|
|
async def delete_invite(self, invite: Union[Invite, str], /) -> None: |
|
|
|
async def delete_invite(self, invite: Union[Invite, str], /) -> Invite: |
|
|
|
"""|coro| |
|
|
|
|
|
|
|
Revokes an :class:`.Invite`, URL, or ID to an invite. |
|
|
@ -2574,7 +2574,8 @@ class Client: |
|
|
|
""" |
|
|
|
|
|
|
|
resolved = utils.resolve_invite(invite) |
|
|
|
await self.http.delete_invite(resolved.code) |
|
|
|
data = await self.http.delete_invite(resolved.code) |
|
|
|
return Invite.from_incomplete(state=self._connection, data=data) |
|
|
|
|
|
|
|
# Miscellaneous stuff |
|
|
|
|
|
|
|