Notifications: Remove ServerCreate event.

This commit is contained in:
Paul
2021-06-07 18:28:28 +01:00
parent c763a292a7
commit 335f729c53
3 changed files with 4 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ pub struct Server {
}
impl Server {
pub async fn publish(self) -> Result<()> {
pub async fn create(self) -> Result<()> {
get_collection("servers")
.insert_one(
to_document(&self).map_err(|_| Error::DatabaseError {
@@ -68,9 +68,6 @@ impl Server {
with: "server",
})?;
let server_id = self.id.clone();
ClientboundNotification::ServerCreate(self).publish(server_id);
Ok(())
}