mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-11-02 14:32:53 +00:00
Fix default value for reason parameter in delete_invite
This commit is contained in:
@@ -2511,7 +2511,7 @@ class Client:
|
|||||||
)
|
)
|
||||||
return Invite.from_incomplete(state=self._connection, data=data)
|
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|
|
"""|coro|
|
||||||
|
|
||||||
Revokes an :class:`.Invite`, URL, or ID to an invite.
|
Revokes an :class:`.Invite`, URL, or ID to an invite.
|
||||||
|
|||||||
Reference in New Issue
Block a user