Comments (3)
I think we should cache everything we can for now, maybe later we can tune it to cache less.
from twilight.
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.
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)
- Support stage channel message types
- Adapting the `Shard::close` example to `ShardEventStream` HOT 1
- Use cargo-deny in CI
- doc(model): in Event, two elements are inversed HOT 1
- Signature validation utility HOT 7
- Failed event deserialization: image hash isn't in a discord image hash format
- String option trims prefixed zeros of integer input
- Lavalink v4 update will break twilight-lavalink HOT 3
- Better discoverability of the book
- `UpdateFollowup` falsely returns `EmptyBody` HOT 1
- Invalid UpdateRolePositions body
- Expose HeaderMap in addition to HeaderIter for twilight-http responses HOT 9
- Unable to deserialize gateway ready event due to missing fields HOT 15
- [RFC] Flatten `PartialX` Types with `X`
- Support Media Channels
- Deserialization errors for members with joined_at=null HOT 1
- `Message.referenced_message` field doesn't exist or is `null` ambiguous
- Creating a ban does not delete any messages
- Investigate static HTTP form boundary
- Formatter macros HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilight.