Limit items sent back on autocomplete (small bug)

This commit is contained in:
2023-12-22 21:23:18 -05:00
parent f722a6a87b
commit c69adb8374
+1 -1
View File
@@ -126,7 +126,7 @@ class ViewCog(commands.Cog, name="View Commands"):
# if empty compare string
if not election_name:
await interaction.response.send_autocomplete(elections)
await interaction.response.send_autocomplete(elections[:25])
return
autofilled_elections: "list[str]" = [