fix(aurora): fixed a minor bug with autocomplete
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 39s

This commit is contained in:
Seaswimmer 2024-08-13 16:08:16 -04:00
parent a5e3a11479
commit 3d8050d3b9
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -817,6 +817,7 @@ class Aurora(commands.Cog):
choices.append(app_commands.Choice(name=current+t, value=current+t)) choices.append(app_commands.Choice(name=current+t, value=current+t))
else: else:
for t in types: for t in types:
if t.startswith(current):
choices.append(app_commands.Choice(name=t, value=t)) choices.append(app_commands.Choice(name=t, value=t))
return choices[:25] return choices[:25]