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

@@ -443,7 +443,7 @@ impl State {
EventV1::ServerMemberJoin { .. } => {
// We will always receive ServerCreate when joining a new server.
}
EventV1::ServerMemberLeave { id, user } => {
EventV1::ServerMemberLeave { id, user, .. } => {
if user == &self.cache.user_id {
self.remove_subscription(id).await;