From 5e9f679178f7b795e555e619f7f00cd8559d8d75 Mon Sep 17 00:00:00 2001 From: fretgfr <51489753+fretgfr@users.noreply.github.com> Date: Sat, 22 Jul 2023 00:22:55 -0400 Subject: [PATCH] Fix NameError in GuildChannel.create_invite Move InviteTarget out of type checking --- discord/abc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discord/abc.py b/discord/abc.py index f93ca3a9a..71eaff6ab 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -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,