Skip to content

Commit

Permalink
Remove slash option type custom and add attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Oct 25, 2021
1 parent 05d31e5 commit 32bf744
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ class SlashCommandOptionType(Enum):
role = 8
mentionable = 9
number = 10
custom = 11
attachment = 11

@classmethod
def from_datatype(cls, datatype):
Expand All @@ -642,9 +642,6 @@ def from_datatype(cls, datatype):
if issubclass(datatype, float):
return cls.number

if hasattr(datatype, "convert"):
return cls.custom

if datatype.__name__ == "Member":
return cls.user
if datatype.__name__ in [
Expand Down

0 comments on commit 32bf744

Please sign in to comment.