Slack v0.2.1 Slack.UserGroup View Source
Functions for a team's User Groups
Link to this section Summary
Functions
Create a new user group.
Disable a user group.
Enable a user group.
List user groups for the team.
Update a user group.
Link to this section Functions
Link to this function
create(client, body \\ [])
View Sourcecreate(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Create a new user group.
https://api.slack.com/methods/usergroups.create
Examples
Slack.UserGroup.create(client, name: "usergroup")
Link to this function
disable(client, body \\ [])
View Sourcedisable(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Disable a user group.
https://api.slack.com/methods/usergroups.disable
Examples
Slack.UserGroup.disable(client, usergroup: "S0604QSJC")
Link to this function
enable(client, body \\ [])
View Sourceenable(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Enable a user group.
https://api.slack.com/methods/usergroups.enable
Examples
Slack.UserGroup.enable(client, usergroup: "S0604QSJC")
Link to this function
list(client, query \\ [])
View Sourcelist(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
List user groups for the team.
https://api.slack.com/methods/usergroups.list
Examples
Slack.UserGroup.list(client)
Link to this function
update(client, body \\ [])
View Sourceupdate(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Update a user group.
https://api.slack.com/methods/usergroups.update
Examples
Slack.UserGroup.update(client, usergroup: "S0604QSJC", name: "newname")