Slack v0.0.12 Slack.UserGroup
Functions for a team’s User Groups
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
Functions
Specs
create(Slack.Client.t, Keyword.t) :: Slack.response
Create a new user group.
https://api.slack.com/methods/usergroups.create
Examples
Slack.UserGroup.create(client, name: "usergroup")
Specs
disable(Slack.Client.t, Keyword.t) :: Slack.response
Disable a user group.
https://api.slack.com/methods/usergroups.disable
Examples
Slack.UserGroup.disable(client, usergroup: "S0604QSJC")
Specs
enable(Slack.Client.t, Keyword.t) :: Slack.response
Enable a user group.
https://api.slack.com/methods/usergroups.enable
Examples
Slack.UserGroup.enable(client, usergroup: "S0604QSJC")
Specs
list(Slack.Client.t, Keyword.t) :: Slack.response
List user groups for the team.
https://api.slack.com/methods/usergroups.list
Examples
Slack.UserGroup.list(client)
Specs
update(Slack.Client.t, Keyword.t) :: Slack.response
Update a user group.
https://api.slack.com/methods/usergroups.update
Examples
Slack.UserGroup.update(client, usergroup: "S0604QSJC", name: "newname")