Emote broadcasting

This commit is contained in:
2026-02-23 08:27:36 +01:00
parent 5cc4685588
commit a4b1ce559f
2 changed files with 54 additions and 2 deletions
+14 -2
View File
@@ -53,12 +53,24 @@ impl Method for BuyHat {
type Error = String;
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ClientEmote {
pub emote: String,
pub targets: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EventEmote {
pub emote: String,
pub from: String,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct Emote;
impl Method for Emote {
const NAME: &'static str = "emote";
type Request = String;
type Request = ClientEmote;
type Response = String;
type Error = String;
}
@@ -68,7 +80,7 @@ pub struct EmoteEvent;
impl Method for EmoteEvent {
const NAME: &'static str = "emote_event";
type Request = String;
type Request = EventEmote;
type Response = String;
type Error = String;
}