I think i found out why shit no work

This commit is contained in:
bitfl0wer 2023-08-16 22:04:36 +02:00
parent c2e7a0bed7
commit ef7261adf9
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 2 additions and 0 deletions

View File

@ -215,7 +215,9 @@ impl UpdateMessage<RoleObject> for GuildRoleUpdate {
}
fn update(&mut self, object_to_update: Arc<RwLock<RoleObject>>) {
println!("Processing Role Update. Name: {}", self.role.name);
let mut write = object_to_update.write().unwrap();
// FIXME: The result of this update never gets saved in the store of GatewayHandle... This is why shit no work
*write = self.role.clone();
}
}