Skip to content

feat(discord-bot): rank autocomplete by recent lookups and the user's guild - #1185

Open
ugcodrr wants to merge 9 commits into
feat/guild-autocompletefrom
feat/autocomplete-ranking
Open

ugcodrr wants to merge 9 commits into
feat/guild-autocompletefrom
feat/autocomplete-ranking

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description: Player and guild autocomplete showed everyone the same list, so the people you check all the time got buried under global matches.

  1. Your lookups from the last 14 days come first, then your guildmates (your own guild on guild commands), then the global matches. An empty box shows just your list.
  2. /reset searches clears your history. The new /autocomplete endpoints are admin only, so an API key can't read anyone's history.

Testing:

  1. Run /bedwars <player> a couple of times, then type its first letters in any player option and it comes up first.
  2. Run /reset searches and it drops back to the global order.

Depends on #1184
Closes STA-46

@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 11, 2026 6:16am UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant