47
47
from .errors import AppCommandError , TransformerError
48
48
from .models import AppCommandChannel , AppCommandThread , Choice
49
49
from ..channel import StageChannel , VoiceChannel , TextChannel , CategoryChannel
50
+ from ..threads import Thread
50
51
from ..enums import Enum as InternalEnum , AppCommandOptionType , ChannelType
51
52
from ..utils import MISSING , maybe_coroutine
52
53
from ..user import User
@@ -574,6 +575,7 @@ async def transform(cls, interaction: Interaction, value: Any):
574
575
ChannelType .category ,
575
576
],
576
577
AppCommandThread : [ChannelType .news_thread , ChannelType .private_thread , ChannelType .public_thread ],
578
+ Thread : [ChannelType .news_thread , ChannelType .private_thread , ChannelType .public_thread ],
577
579
StageChannel : [ChannelType .stage_voice ],
578
580
VoiceChannel : [ChannelType .voice ],
579
581
TextChannel : [ChannelType .text , ChannelType .news ],
@@ -590,6 +592,7 @@ async def transform(cls, interaction: Interaction, value: Any):
590
592
Role : passthrough_transformer (AppCommandOptionType .role ),
591
593
AppCommandChannel : channel_transformer (AppCommandChannel , raw = True ),
592
594
AppCommandThread : channel_transformer (AppCommandThread , raw = True ),
595
+ Thread : channel_transformer (Thread ),
593
596
StageChannel : channel_transformer (StageChannel ),
594
597
VoiceChannel : channel_transformer (VoiceChannel ),
595
598
TextChannel : channel_transformer (TextChannel ),
0 commit comments