fix: add emojis to ServerCreate event

This commit is contained in:
Bob Bobs authored and Paul Makles committed 2023-12-02 11:46:18 +00:00
1 parent 1f593a1708
commit db63ac4064
5 files changed
+9

No files matched your search

@@ -206,6 +206,8 @@ impl Server {
}
}
let emojis = db.fetch_emoji_by_parent_id(&self.id).await?;
EventV1::ServerMemberJoin {
id: self.id.clone(),
user: user.id.clone(),
@@ -217,6 +219,7 @@ impl Server {
id: self.id.clone(),
server: self.clone(),
channels: channels.clone(),
emojis,
}
.private(user.id.clone())
.await;