forked from jmug/stoatchat
feat(bots): implement bot routes
This commit is contained in:
@@ -10,7 +10,8 @@ pub struct Data {
|
||||
nickname: Option<String>,
|
||||
avatar: Option<String>,
|
||||
roles: Option<Vec<String>>,
|
||||
remove: Option<FieldsMember>,
|
||||
#[validate(length(min = 1))]
|
||||
remove: Option<Vec<FieldsMember>>,
|
||||
}
|
||||
|
||||
#[patch("/<server>/members/<target>", data = "<data>")]
|
||||
|
||||
@@ -13,7 +13,8 @@ pub struct Data {
|
||||
colour: Option<String>,
|
||||
hoist: Option<bool>,
|
||||
rank: Option<i64>,
|
||||
// remove: Option<FieldsRole>,
|
||||
// #[validate(length(min = 1))]
|
||||
// remove: Option<Vec<FieldsRole>>,
|
||||
}
|
||||
|
||||
#[patch("/<target>/roles/<role_id>", data = "<data>")]
|
||||
|
||||
@@ -17,9 +17,11 @@ pub struct Data {
|
||||
banner: Option<String>,
|
||||
categories: Option<Vec<Category>>,
|
||||
system_messages: Option<SystemMessageChannels>,
|
||||
remove: Option<FieldsServer>,
|
||||
nsfw: Option<bool>,
|
||||
analytics: Option<bool>,
|
||||
|
||||
#[validate(length(min = 1))]
|
||||
remove: Option<Vec<FieldsServer>>,
|
||||
}
|
||||
|
||||
#[patch("/<target>", data = "<data>")]
|
||||
|
||||
Reference in New Issue
Block a user