Giter Site home page Giter Site logo

Comments (3)

Erk- avatar Erk- commented on June 4, 2024 1

I think we should cache everything we can for now, maybe later we can tune it to cache less.

from twilight.

Arzte avatar Arzte commented on June 4, 2024

For Presence Update, what do we want to cache, there can be a lot of info in a Presence Update

Example Presence Update
PresenceUpdate {
    activities: [
        Activity {
            application_id: None,
            assets: None,
            created_at: Some(
                1576683758892,
            ),
            details: None,
            flags: None,
            id: Some(
                "custom",
            ),
            instance: None,
            kind: Custom,
            name: "Custom Status",
            emoji: Some(
                ActivityEmoji {
                    name: "chisesotired",
                    id: Some(
                        "650885599774900224",
                    ),
                    animated: Some(
                        false,
                    ),
                },
            ),
            party: None,
            secrets: None,
            state: Some(
                "Gender of the day: Tired and Cold",
            ),
            timestamps: None,
            url: None,
        },
    ],
    client_status: ClientStatus {
        desktop: Some(
            DoNotDisturb,
        ),
        mobile: None,
        web: None,
    },
    game: Some(
        Activity {
            application_id: None,
            assets: None,
            created_at: Some(
                1576683758892,
            ),
            details: None,
            flags: None,
            id: Some(
                "custom",
            ),
            instance: None,
            kind: Custom,
            name: "Custom Status",
            emoji: Some(
                ActivityEmoji {
                    name: "chisesotired",
                    id: Some(
                        "650885599774900224",
                    ),
                    animated: Some(
                        false,
                    ),
                },
            ),
            party: None,
            secrets: None,
            state: Some(
                "Gender of the day: Tired and Cold",
            ),
            timestamps: None,
            url: None,
        },
    ),
    guild_id: Some(
        GuildId(
            197169999494774784,
        ),
    ),
    roles: Some(
        [
            RoleId(
                514281318515867680,
            ),
            RoleId(
                366385309921050625,
            ),
            RoleId(
                394332081691426818,
            ),
            RoleId(
                309714880691306499,
            ),
            RoleId(
                401928764507947018,
            ),
        ],
    ),
    status: DoNotDisturb,
    user: UserId {
        id: UserId(
            77812253511913472,
        ),
    },
}

from twilight.

github-actions avatar github-actions commented on June 4, 2024

This issue has been marked as stale because it has been open with no activity for 60 days. It will be closed in 5 days unless a comment triages the issue.

from twilight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.