Skip to content

preferred_locale doesnt get saved into the cache if changed during runtime #3364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ekcum opened this issue May 12, 2025 · 2 comments
Open

Comments

@Ekcum
Copy link

Ekcum commented May 12, 2025

  1. Before changing server language (the forth warn is prefered locale of the server)
    Image

  2. Bot gets update via auditlog
    Image

  3. After changing server language
    Image

  4. Restarting the bots saves the new prefered server locale
    Image

Cargo Toml:

[package]
name = "Bot"
version = "0.1.0"
edition = "2021"

[dependencies]
dotenv = "0.15.0"
env_logger = "0.11.6"
reqwest = { version = "0.12.11", features = ["json"] }
serenity = { version = "0.12.4", features = ["cache"] }
tokio = { version = "1.42.0", features = ["rt-multi-thread"] }
serde = { version = "1.0.217", features = ["derive"] }
log = "0.4.22"
poise = { git = "https://github.com/serenity-rs/poise", branch = "current"}
uuid = { version = "1.11.1", features = ["serde", "v4", "macro-diagnostics", "fast-rng"] }
mpb_common = { path = "../../Libs/mpb_common" }
sys-info = "0.9.1"
chrono = "0.4.39"
websocket = "0.27.1"
futures-util = "0.3.31"
anyhow = "1.0.97"
tokio-tungstenite = "0.21.0"
url = "1.7.2"
@jamesbt365
Copy link
Member

If no GUILD_UPDATE event is fired, nothing will be updated in the cache.

@jamesbt365 jamesbt365 closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2025
@jamesbt365
Copy link
Member

Looking into this further, we don't update the field on CacheUpdate for whatever reason

@jamesbt365 jamesbt365 reopened this May 12, 2025
@Ekcum Ekcum changed the title preferred_locale probably doesnt get saved into the cache if changed during runtime preferred_locale doesnt get saved into the cache if changed during runtime May 12, 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

No branches or pull requests

2 participants