polyphony_types/events/
user.rs

1use serde::{Deserialize, Serialize};
2use crate::entities::User;
3use crate::events::WebSocketEvent;
4
5#[derive(Debug, Default, Deserialize, Serialize)]
6/// See https://discord.com/developers/docs/topics/gateway-events#user-update
7/// Not directly serialized, as the inner payload is the user object
8pub struct UserUpdate {
9    pub user: User,
10}
11
12impl WebSocketEvent for UserUpdate {}