JSON system messages.
This commit is contained in:
@@ -102,7 +102,8 @@ pub async fn req(user: User, target: Ref) -> Result<()> {
|
||||
Message::create(
|
||||
"00000000000000000000000000".to_string(),
|
||||
id.clone(),
|
||||
format!("<@{}> left the group.", user.id),
|
||||
// ! FIXME: make a schema for this
|
||||
format!("{{\"type\":\"user_left\",\"id\":\"{}\"}}", user.id),
|
||||
)
|
||||
.publish(&target)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user