Slack.Web.Groups.set_purpose
You're seeing just the function
set_purpose
, go back to Slack.Web.Groups module for more information.
Sets the purpose for a private channel.
Required Params
channel
- Private channel to set the purpose ofpurpose
- The new purpose ex:My Purpose
Errors the API can return:
channel_not_found
- Value passed forchannel
was invalid.is_archived
- Private group has been archivedtoo_long
- Purpose was longer than 250 characters.user_is_restricted
- Setting the purpose is a restricted action.