还是在new里面去掉 sticker
This commit is contained in:
parent
c65a2229cc
commit
b349cdf4af
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -653,7 +653,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ica-rs"
|
name = "ica-rs"
|
||||||
version = "0.6.2"
|
version = "0.6.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ica-rs"
|
name = "ica-rs"
|
||||||
version = "0.6.2"
|
version = "0.6.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -275,7 +275,7 @@ impl NewMessage {
|
|||||||
|
|
||||||
/// 创建一条对这条消息的回复
|
/// 创建一条对这条消息的回复
|
||||||
pub fn reply_with(&self, content: &String) -> SendMessage {
|
pub fn reply_with(&self, content: &String) -> SendMessage {
|
||||||
SendMessage::new(content.clone(), self.room_id, Some(self.msg.as_reply()), false)
|
SendMessage::new(content.clone(), self.room_id, Some(self.msg.as_reply()))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 作为被删除的消息
|
/// 作为被删除的消息
|
||||||
@ -314,7 +314,6 @@ impl SendMessage {
|
|||||||
content: String,
|
content: String,
|
||||||
room_id: RoomId,
|
room_id: RoomId,
|
||||||
reply_to: Option<ReplyMessage>,
|
reply_to: Option<ReplyMessage>,
|
||||||
sticker: bool,
|
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
content,
|
content,
|
||||||
@ -322,7 +321,7 @@ impl SendMessage {
|
|||||||
reply_to,
|
reply_to,
|
||||||
at: json!([]),
|
at: json!([]),
|
||||||
file_data: None,
|
file_data: None,
|
||||||
sticker,
|
sticker: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,6 +340,7 @@ impl SendMessage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 被删除的消息
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct DeleteMessage {
|
pub struct DeleteMessage {
|
||||||
#[serde(rename = "roomId")]
|
#[serde(rename = "roomId")]
|
||||||
|
@ -51,7 +51,6 @@ pub async fn start_ica(config: &IcaConfig, stop_reciver: StopGetter) -> ClientRe
|
|||||||
format!("shenbot v {}\nica-async-rs v{}", crate::VERSION, crate::ICA_VERSION),
|
format!("shenbot v {}\nica-async-rs v{}", crate::VERSION, crate::ICA_VERSION),
|
||||||
*room,
|
*room,
|
||||||
None,
|
None,
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
|
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user