feat: add reason to ServerMemberLeave event
closes #314 Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>
This commit is contained in:
committed by
IAmTomahawkx
parent
a9e309395e
commit
e17af1c064
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user