diff --git a/src/types.rs b/src/types.rs index 7a71f70b..2806c5b8 100644 --- a/src/types.rs +++ b/src/types.rs @@ -603,8 +603,10 @@ pub struct MessageMeMessage { #[derive(Clone, Debug, Deserialize)] pub struct MessageMessageChanged { pub channel: Option, + pub event_ts: Option, pub hidden: Option, pub message: Option, + pub previous_message: Option, pub subtype: Option, pub ts: Option, #[serde(rename = "type")] @@ -613,11 +615,19 @@ pub struct MessageMessageChanged { #[derive(Clone, Debug, Deserialize)] pub struct MessageMessageChangedMessage { + pub bot_id: Option, pub edited: Option, + pub last_read: Option, + pub parent_user_id: Option, + pub replies: Option>, + pub reply_count: Option, + pub subscribed: Option, pub text: Option, + pub thread_ts: Option, pub ts: Option, #[serde(rename = "type")] pub ty: Option, + pub unread_count: Option, pub user: Option, } @@ -628,17 +638,89 @@ pub struct MessageMessageChangedMessageEdited { } +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageChangedMessageReply { + pub ts: Option, + pub user: Option, +} + + +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageChangedPreviousMessage { + pub bot_id: Option, + pub edited: Option, + pub last_read: Option, + pub parent_user_id: Option, + pub replies: Option>, + pub reply_count: Option, + pub subscribed: Option, + pub text: Option, + pub thread_ts: Option, + pub ts: Option, + #[serde(rename = "type")] + pub ty: Option, + pub unread_count: Option, + pub user: Option, +} + +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageChangedPreviousMessageEdited { + pub ts: Option, + pub user: Option, +} + + +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageChangedPreviousMessageReply { + pub ts: Option, + pub user: Option, +} + + #[derive(Clone, Debug, Deserialize)] pub struct MessageMessageDeleted { pub channel: Option, pub deleted_ts: Option, + pub event_ts: Option, pub hidden: Option, + pub previous_message: Option, pub subtype: Option, pub ts: Option, #[serde(rename = "type")] pub ty: Option, } +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageDeletedPreviousMessage { + pub bot_id: Option, + pub edited: Option, + pub last_read: Option, + pub parent_user_id: Option, + pub replies: Option>, + pub reply_count: Option, + pub subscribed: Option, + pub text: Option, + pub thread_ts: Option, + pub ts: Option, + #[serde(rename = "type")] + pub ty: Option, + pub unread_count: Option, + pub user: Option, +} + +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageDeletedPreviousMessageEdited { + pub ts: Option, + pub user: Option, +} + + +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageDeletedPreviousMessageReply { + pub ts: Option, + pub user: Option, +} + #[derive(Clone, Debug, Deserialize)] pub struct MessageMessageReplied { @@ -647,6 +729,7 @@ pub struct MessageMessageReplied { pub hidden: Option, pub message: Option, pub subtype: Option, + pub thread_ts: Option, pub ts: Option, #[serde(rename = "type")] pub ty: Option, @@ -654,16 +737,29 @@ pub struct MessageMessageReplied { #[derive(Clone, Debug, Deserialize)] pub struct MessageMessageRepliedMessage { + pub bot_id: Option, + pub edited: Option, + pub last_read: Option, + pub parent_user_id: Option, pub replies: Option>, pub reply_count: Option, + pub subscribed: Option, pub text: Option, pub thread_ts: Option, pub ts: Option, #[serde(rename = "type")] pub ty: Option, + pub unread_count: Option, pub user: Option, } +#[derive(Clone, Debug, Deserialize)] +pub struct MessageMessageRepliedMessageEdited { + pub ts: Option, + pub user: Option, +} + + #[derive(Clone, Debug, Deserialize)] pub struct MessageMessageRepliedMessageReply { pub ts: Option, @@ -720,9 +816,15 @@ pub struct MessageReplyBroadcastAttachment { #[derive(Clone, Debug, Deserialize)] pub struct MessageStandard { pub attachments: Option>, + pub bot_id: Option, pub channel: Option, pub edited: Option, + pub event_ts: Option, + pub reply_broadcast: Option, + pub source_team: Option, + pub team: Option, pub text: Option, + pub thread_ts: Option, pub ts: Option, #[serde(rename = "type")] pub ty: Option,