feat: add reason to ServerMemberLeave event

closes #314

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>
This commit is contained in:
Paul Makles
2024-07-12 15:25:33 -07:00
committed by IAmTomahawkx
parent a9e309395e
commit e17af1c064
3 changed files with 9 additions and 4 deletions
+1 -1
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;