feat: add reason to ServerMemberLeave event

closes #314
This commit is contained in:
Paul Makles
2024-07-10 14:12:53 +01:00
parent 78cd89ec32
commit e290d168ac
3 changed files with 9 additions and 4 deletions

View File

@@ -229,6 +229,7 @@ impl Member {
EventV1::ServerMemberLeave {
id: self.id.server.to_string(),
user: self.id.user.to_string(),
reason: intention.clone().into(),
}
.p(self.id.server.to_string())
.await;