File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -510,6 +510,7 @@ def __init__(
510
510
else :
511
511
self .input_type = input_type
512
512
513
+ print (self .input_type )
513
514
self .required : bool = kwargs .pop ("required" , True )
514
515
self .choices : List [OptionChoice ] = [
515
516
o if isinstance (o , OptionChoice ) else OptionChoice (o )
Original file line number Diff line number Diff line change @@ -603,12 +603,12 @@ class SlashCommandOptionType(Enum):
603
603
604
604
@classmethod
605
605
def from_datatype (cls , datatype ):
606
-
606
+ print ( datatype )
607
607
if isinstance (datatype , tuple ): # typing.Union has been used
608
608
datatypes = [cls .from_datatype (op ) for op in datatype ]
609
609
if all ([x == cls .channel for x in datatypes ]):
610
610
return cls .channel
611
- elif set (datatypes ) <= {cls .role , cls .channel }:
611
+ elif set (datatypes ) <= {cls .role , cls .user }:
612
612
return cls .mentionable
613
613
else :
614
614
raise TypeError ('Invalid usage of typing.Union' )
You can’t perform that action at this time.
0 commit comments