mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Update pyright version
This commit is contained in:
@ -1246,6 +1246,8 @@ class GuildChannel:
|
||||
:class:`~discord.Invite`
|
||||
The invite that was created.
|
||||
"""
|
||||
if target_type is InviteTarget.unknown:
|
||||
raise ValueError('Cannot create invite with an unknown target type')
|
||||
|
||||
data = await self._state.http.create_invite(
|
||||
self.id,
|
||||
|
Reference in New Issue
Block a user