Skip to content

Commit

Permalink
fix: component_type can be none
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoo1104 committed Aug 27, 2023
1 parent 87836a8 commit aa9ebba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dico/model/interactions/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ class SelectMenu(Component):
def __init__(
self,
*,
component_type: typing.Union[int, "ComponentTypes"],
custom_id: str,
options: typing.List[typing.Union["SelectOption", dict]],
component_type: typing.Union[int, "ComponentTypes"] = ComponentTypes.STRING_SELECT,
channel_types: typing.List[int] = None,
placeholder: typing.Optional[str] = None,
min_values: typing.Optional[int] = None,
Expand Down

0 comments on commit aa9ebba

Please sign in to comment.