forked from jmug/stoatchat
0.5.1-alpha.8
Add Edit Role route.
This commit is contained in:
@@ -46,6 +46,11 @@ pub enum RemoveServerField {
|
||||
Description,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub enum RemoveRoleField {
|
||||
Colour,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub enum RemoveMemberField {
|
||||
Nickname,
|
||||
@@ -132,7 +137,9 @@ pub enum ClientboundNotification {
|
||||
ServerRoleUpdate {
|
||||
id: String,
|
||||
role_id: String,
|
||||
data: JsonValue
|
||||
data: JsonValue,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
clear: Option<RemoveRoleField>
|
||||
},
|
||||
ServerRoleDelete {
|
||||
id: String,
|
||||
|
||||
Reference in New Issue
Block a user