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 05d31e5 commit 32bf744Copy full SHA for 32bf744
discord/enums.py
@@ -620,7 +620,7 @@ class SlashCommandOptionType(Enum):
620
role = 8
621
mentionable = 9
622
number = 10
623
- custom = 11
+ attachment = 11
624
625
@classmethod
626
def from_datatype(cls, datatype):
@@ -642,9 +642,6 @@ def from_datatype(cls, datatype):
642
if issubclass(datatype, float):
643
return cls.number
644
645
- if hasattr(datatype, "convert"):
646
- return cls.custom
647
-
648
if datatype.__name__ == "Member":
649
return cls.user
650
if datatype.__name__ in [
0 commit comments