From 074e8c23d1f6ac478a6da9ee4f88fa9b78624140 Mon Sep 17 00:00:00 2001 From: Middledot Date: Fri, 17 Jun 2022 22:09:48 -0400 Subject: [PATCH] Make enum options set input_type ... ...to the respective enum --- discord/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/commands/core.py b/discord/commands/core.py index 76db34cfae..2ae2e4376d 100644 --- a/discord/commands/core.py +++ b/discord/commands/core.py @@ -689,7 +689,7 @@ def _parse_options(self, params, *, check_params: bool = True) -> List[Option]: if not isinstance(option, Option): if isinstance(p_obj.default, Option): - p_obj.default.input_type = option + p_obj.default.input_type = SlashCommandOptionType.from_datatype(option) option = p_obj.default else: option = Option(option)