Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit c6be844

Browse files
committed
fixed choices not working
1 parent d568fa1 commit c6be844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_ui/slash/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, argument_type, name, description=None, required=False, choice
6161
self.required = required
6262
self.options = _default([], options)
6363
self.autocomplete = autocomplete
64-
self.choices = choices if self.autocomplete is None else None
64+
self.choices = choices if self.autocomplete is False else None
6565
self.choice_generator: typing.Callable[[typing.Any], typing.List[typing.Union[dict, tuple]]] = choice_generator
6666
"""A function which will generate choices for this option"""
6767
def __repr__(self) -> str:

0 commit comments

Comments
 (0)