Browse Source

Fix NameError in GuildChannel.create_invite

Move InviteTarget out of type checking
pull/9506/head
fretgfr 2 years ago
committed by GitHub
parent
commit
5e9f679178
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      discord/abc.py

3
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,

Loading…
Cancel
Save