Skip to content

feat(discord-bot): keep profile page buttons working after restarts - #1088

Open
ugcodrr wants to merge 5 commits into
feat/component-routesfrom
feat/persistent-profile-buttons
Open

ugcodrr wants to merge 5 commits into
feat/component-routesfrom
feat/persistent-profile-buttons

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Description: Mode buttons on profiles like /bedwars disappear after 5 minutes and stop working after a restart.

  1. A click reads the cached player and never asks Hypixel, so it shows the stats from the last lookup.
  2. Buttons point at a page's position. Blitz and Mega Walls sort kits by how much they're played, so if the player gets refreshed between the reply and a click, the click can show a different kit than the one picked, or the first page if that kit is gone.

Testing:

  1. /bedwars anrie, restart the bot, then pick Doubles, and the Doubles page shows.
  2. /duels oJakey, pick BedWars, then click Bed Rush as someone else, and you get a private preview while the message stays the same.

Stacked on #1087.
Conflicts with #1034 and #988.

@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Nov 3, 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 3, 2026 2:17am 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