Limit items sent back on autocomplete (small bug)
This commit is contained in:
@@ -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]" = [
|
||||
|
||||
Reference in New Issue
Block a user