Skip to content

Commit 13afc3f

Browse files
committed
fix: fixed an TypeError when passing something else then the direct enum as option_type to SlashCommandOption
1 parent 9df8abb commit 13afc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/application_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def __init__(
645645
) -> None:
646646
from .ext.commands import Converter, Greedy
647647
if not isinstance(option_type, OptionType):
648-
if issubclass(option_type, Converter) or converter is Greedy:
648+
if issubclass(type(option_type), Converter) or converter is Greedy:
649649
converter = copy.copy(option_type)
650650
option_type = str
651651
option_type, channel_type = OptionType.from_type(option_type)

0 commit comments

Comments
 (0)