124124 from .flags import MemberCacheFlags
125125
126126 class _ClientOptions (TypedDict , total = False ):
127- max_messages : int
128- proxy : str
129- proxy_auth : aiohttp .BasicAuth
130- shard_id : int
131- shard_count : int
127+ max_messages : Optional [ int ]
128+ proxy : Optional [ str ]
129+ proxy_auth : Optional [ aiohttp .BasicAuth ]
130+ shard_id : Optional [ int ]
131+ shard_count : Optional [ int ]
132132 application_id : int
133133 member_cache_flags : MemberCacheFlags
134134 chunk_guilds_at_startup : bool
135- status : Status
136- activity : BaseActivity
137- allowed_mentions : AllowedMentions
135+ status : Optional [ Status ]
136+ activity : Optional [ BaseActivity ]
137+ allowed_mentions : Optional [ AllowedMentions ]
138138 heartbeat_timeout : float
139139 guild_ready_timeout : float
140140 assume_unsync_clock : bool
141141 enable_debug_events : bool
142142 enable_raw_presences : bool
143143 http_trace : aiohttp .TraceConfig
144- max_ratelimit_timeout : float
145- connector : aiohttp .BaseConnector
144+ max_ratelimit_timeout : Optional [ float ]
145+ connector : Optional [ aiohttp .BaseConnector ]
146146
147147
148148# fmt: off
@@ -2511,7 +2511,7 @@ async def fetch_invite(
25112511 )
25122512 return Invite .from_incomplete (state = self ._connection , data = data )
25132513
2514- async def delete_invite (self , invite : Union [Invite , str ], / ) -> Invite :
2514+ async def delete_invite (self , invite : Union [Invite , str ], / , * , reason : Optional [ str ] ) -> Invite :
25152515 """|coro|
25162516
25172517 Revokes an :class:`.Invite`, URL, or ID to an invite.
@@ -2527,6 +2527,8 @@ async def delete_invite(self, invite: Union[Invite, str], /) -> Invite:
25272527 ----------
25282528 invite: Union[:class:`.Invite`, :class:`str`]
25292529 The invite to revoke.
2530+ reason: Optional[:class:`str`]
2531+ The reason for deleting the invite. Shows up on the audit log.
25302532
25312533 Raises
25322534 -------
@@ -2539,7 +2541,7 @@ async def delete_invite(self, invite: Union[Invite, str], /) -> Invite:
25392541 """
25402542
25412543 resolved = utils .resolve_invite (invite )
2542- data = await self .http .delete_invite (resolved .code )
2544+ data = await self .http .delete_invite (resolved .code , reason = reason )
25432545 return Invite .from_incomplete (state = self ._connection , data = data )
25442546
25452547 # Miscellaneous stuff
0 commit comments