Struct slack_chat_api::usergroups_users::UsergroupsUsers
source · pub struct UsergroupsUsers {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl UsergroupsUsers
impl UsergroupsUsers
sourcepub async fn list(
&self,
include_disabled: bool,
usergroup: &str
) -> Result<UsergroupsUsersListSchema>
pub async fn list( &self, include_disabled: bool, usergroup: &str ) -> Result<UsergroupsUsersListSchema>
This function performs a GET to the /usergroups.users.list endpoint.
List all users in a User Group
FROM: https://api.slack.com/methods/usergroups.users.list
Parameters:
token: &str– Authentication token. Requires scope:usergroups:read.include_disabled: bool– Allow results that involve disabled User Groups.usergroup: &str– The encoded ID of the User Group to update.
sourcepub async fn update(&self) -> Result<UsergroupsCreateSchema>
pub async fn update(&self) -> Result<UsergroupsCreateSchema>
This function performs a POST to the /usergroups.users.update endpoint.
Update the list of users for a User Group
FROM: https://api.slack.com/methods/usergroups.users.update
Parameters:
token: &str– Authentication token. Requires scope:usergroups:write.