mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com> Co-authored-by: Josh <josh.ja.butt@gmail.com>
This commit is contained in:
@ -456,7 +456,7 @@ class Invite(Hashable):
|
||||
guild: Optional[Union[Guild, Object]] = state._get_guild(guild_id)
|
||||
channel_id = int(data['channel_id'])
|
||||
if guild is not None:
|
||||
channel = guild.get_channel(channel_id) or Object(id=channel_id) # type: ignore
|
||||
channel = guild.get_channel(channel_id) or Object(id=channel_id)
|
||||
else:
|
||||
guild = Object(id=guild_id) if guild_id is not None else None
|
||||
channel = Object(id=channel_id)
|
||||
@ -539,7 +539,7 @@ class Invite(Hashable):
|
||||
|
||||
return self
|
||||
|
||||
async def delete(self, *, reason: Optional[str] = None):
|
||||
async def delete(self, *, reason: Optional[str] = None) -> None:
|
||||
"""|coro|
|
||||
|
||||
Revokes the instant invite.
|
||||
|
Reference in New Issue
Block a user