fix(aurora): fixed a minor bug with autocomplete
This commit is contained in:
parent
a5e3a11479
commit
3d8050d3b9
1 changed files with 2 additions and 1 deletions
|
@ -817,7 +817,8 @@ 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:
|
||||||
choices.append(app_commands.Choice(name=t, value=t))
|
if t.startswith(current):
|
||||||
|
choices.append(app_commands.Choice(name=t, value=t))
|
||||||
return choices[:25]
|
return choices[:25]
|
||||||
|
|
||||||
@app_commands.command(name="resolve")
|
@app_commands.command(name="resolve")
|
||||||
|
|
Loading…
Reference in a new issue