Fix NameError in GuildChannel.create_invite

Move InviteTarget out of type checking
This commit is contained in:
fretgfr 2023-07-22 00:22:55 -04:00 committed by GitHub
parent c69ce78ad1
commit 5e9f679178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ from typing import (
from .object import OLDEST_OBJECT, Object
from .context_managers import Typing
from .enums import ChannelType
from .enums import ChannelType, InviteTarget
from .errors import ClientException
from .mentions import AllowedMentions
from .permissions import PermissionOverwrite, Permissions
@ -93,7 +93,6 @@ if TYPE_CHECKING:
StageChannel,
)
from .threads import Thread
from .enums import InviteTarget
from .ui.view import View
from .types.channel import (
PermissionOverwrite as PermissionOverwritePayload,