Skip to content

Commit 7441ce8

Browse files
authored
Merge pull request #319 from Aiko-IT-Systems/application-commands/fix-11
Remove slash option type custom and add attachment
2 parents 3018641 + 32bf744 commit 7441ce8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

discord/enums.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ class SlashCommandOptionType(Enum):
620620
role = 8
621621
mentionable = 9
622622
number = 10
623-
custom = 11
623+
attachment = 11
624624

625625
@classmethod
626626
def from_datatype(cls, datatype):
@@ -642,9 +642,6 @@ def from_datatype(cls, datatype):
642642
if issubclass(datatype, float):
643643
return cls.number
644644

645-
if hasattr(datatype, "convert"):
646-
return cls.custom
647-
648645
if datatype.__name__ == "Member":
649646
return cls.user
650647
if datatype.__name__ in [

0 commit comments

Comments
 (0)