Update pyright version

This commit is contained in:
Josh authored and GitHub committed 2023-07-01 18:26:27 -04:00
1 parent 0871b34fc8
commit 630b2a1e55
17 files changed
+45 -27

No files matched your search

+2
View File
@@ -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,