We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678bf05 commit ca8cb6dCopy full SHA for ca8cb6d
discord/enums.py
@@ -611,7 +611,7 @@ def from_datatype(cls, datatype):
611
return cls.mentionable
612
else:
613
raise TypeError('Invalid usage of typing.Union')
614
-
+
615
if issubclass(datatype, str):
616
return cls.string
617
if issubclass(datatype, bool):
@@ -633,7 +633,7 @@ def from_datatype(cls, datatype):
633
return cls.role
634
if datatype.__name__ == "Mentionable":
635
636
637
# TODO: Improve the error message
638
raise TypeError(f'Invalid class {datatype} used as an input type for an Option')
639
0 commit comments