mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-11-03 23:12:56 +00:00 
			
		
		
		
	Fix NameError in GuildChannel.create_invite
Move InviteTarget out of type checking
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user