Skip to content

Commit eaa6c72

Browse files
authored
Update core.py (#1339)
1 parent 7f2c26f commit eaa6c72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

discord/commands/core.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,12 @@ async def _invoke(self, ctx: ApplicationContext) -> None:
825825
elif op.input_type == SlashCommandOptionType.string and (converter := op.converter) is not None:
826826
arg = await converter.convert(converter, ctx, arg)
827827

828+
elif op._raw_type in (SlashCommandOptionType.integer,
829+
SlashCommandOptionType.number,
830+
SlashCommandOptionType.string,
831+
SlashCommandOptionType.boolean):
832+
pass
833+
828834
elif issubclass(op._raw_type, Enum):
829835
if isinstance(arg, str) and arg.isdigit():
830836
try:

0 commit comments

Comments
 (0)