Skip to content

Cache updated guild icon and/or name#3

Merged
BenHall-1 merged 1 commit intoTicketsBot-cloud:masterfrom
biast12:master
Mar 5, 2025
Merged

Cache updated guild icon and/or name#3
BenHall-1 merged 1 commit intoTicketsBot-cloud:masterfrom
biast12:master

Conversation

@biast12
Copy link
Copy Markdown
Contributor

@biast12 biast12 commented Feb 4, 2025

When a user updates their server icon and/or name, it does not update in the guild cache, which leads to the server listing always showing the old icon and/or name until they refresh the list. This fixes that by checking if the guild icon or name has been changed and updates the cache.

(This is all untested so please test it for me before merging, it should work tho)
How to check if the code works:

  1. Open the dashboard.
  2. Inspect elements.
  3. Go into application.
  4. Open local storage.
  5. Find the guilds key and change one of the server's icon or name. Reload.
  6. Click/open the server settings.
  7. Go back.
  8. Reload.
  9. The icon and/or name should be fixed then (hopefully).

When a user updates their server icon and/or name, it does not update in the guild cache, which leads to the server listing always showing the old icon and/or name until they refresh the list. This fixes that by checking if the guild icon or name has been changed and updates the cache.

How to check if the code works:
Open the dashboard.
Inspect elements.
Go into application.
Open local storage.
Find the guilds key and change one of the server's icon or name.
Reload.
Click/open the server settings.
Go back.
Reload.
The icon and/or name should be fixed then (hopefully).
@BenHall-1
Copy link
Copy Markdown
Member

Thanks for the contribution! Approved 🎉

@BenHall-1 BenHall-1 merged commit 39dfd24 into TicketsBot-cloud:master Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants