Browse Source
Fix default value for reason parameter in delete_invite
pull/10341/head
Sacul
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/client.py
|
|
|
@ -2511,7 +2511,7 @@ class Client: |
|
|
|
) |
|
|
|
return Invite.from_incomplete(state=self._connection, data=data) |
|
|
|
|
|
|
|
async def delete_invite(self, invite: Union[Invite, str], /, *, reason: Optional[str]) -> Invite: |
|
|
|
async def delete_invite(self, invite: Union[Invite, str], /, *, reason: Optional[str] = None) -> Invite: |
|
|
|
"""|coro| |
|
|
|
|
|
|
|
Revokes an :class:`.Invite`, URL, or ID to an invite. |
|
|
|
|