I think i found out why shit no work
This commit is contained in:
parent
7c8ad3ffcf
commit
a1df997c9f
|
@ -215,7 +215,9 @@ impl UpdateMessage<RoleObject> for GuildRoleUpdate {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update(&mut self, object_to_update: Arc<RwLock<RoleObject>>) {
|
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();
|
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();
|
*write = self.role.clone();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue