Skip to content

Commit

Permalink
Update API from slack-api-ref@3ec3c10 (2024-07-27)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jul 27, 2024
1 parent c2bf677 commit e0c42c1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/commands/usergroups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class App
c.flag 'name', desc: 'A name for the User Group. Must be unique among User Groups.'
c.flag 'channels', desc: 'A comma separated string of encoded channel IDs for which the User Group uses as a default.'
c.flag 'description', desc: 'A short description of the User Group.'
c.flag 'enable_section', desc: 'Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.'
c.flag 'handle', desc: 'A mention handle. Must be unique among channels, users and User Groups.'
c.flag 'include_count', desc: 'Include the number of users in each User Group.'
c.flag 'team_id', desc: 'Encoded team id where the user group has to be created, required if org token is used.'
Expand Down Expand Up @@ -60,6 +61,7 @@ class App
c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.'
c.flag 'channels', desc: 'A comma separated string of encoded channel IDs for which the User Group uses as a default.'
c.flag 'description', desc: 'A short description of the User Group.'
c.flag 'enable_section', desc: 'Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.'
c.flag 'handle', desc: 'A mention handle. Must be unique among channels, users and User Groups.'
c.flag 'include_count', desc: 'Include the number of users in the User Group.'
c.flag 'name', desc: 'A name for the User Group. Must be unique among User Groups.'
Expand Down
4 changes: 4 additions & 0 deletions lib/slack/web/api/endpoints/usergroups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module Usergroups
# A comma separated string of encoded channel IDs for which the User Group uses as a default.
# @option options [string] :description
# A short description of the User Group.
# @option options [boolean] :enable_section
# Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.
# @option options [string] :handle
# A mention handle. Must be unique among channels, users and User Groups.
# @option options [boolean] :include_count
Expand Down Expand Up @@ -86,6 +88,8 @@ def usergroups_list(options = {})
# A comma separated string of encoded channel IDs for which the User Group uses as a default.
# @option options [string] :description
# A short description of the User Group.
# @option options [boolean] :enable_section
# Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added.
# @option options [string] :handle
# A mention handle. Must be unique among channels, users and User Groups.
# @option options [boolean] :include_count
Expand Down
2 changes: 2 additions & 0 deletions lib/slack/web/api/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class ErrorBadUpload < SlackError; end
class ErrorBadWide < SlackError; end
class ErrorInvalidAlias < SlackError; end
class ErrorInvalidEmojiToRename < SlackError; end
class ErrorLowerCaseNamesOnly < SlackError; end
class ErrorMissingName < SlackError; end
class ErrorNameTaken < SlackError; end
class ErrorNameTakenI18n < SlackError; end
Expand Down Expand Up @@ -833,6 +834,7 @@ class WorkflowsExportCsvNotEnabled < SlackError; end
'error_bad_wide' => ErrorBadWide,
'error_invalid_alias' => ErrorInvalidAlias,
'error_invalid_emoji_to_rename' => ErrorInvalidEmojiToRename,
'error_lower_case_names_only' => ErrorLowerCaseNamesOnly,
'error_missing_name' => ErrorMissingName,
'error_name_taken' => ErrorNameTaken,
'error_name_taken_i18n' => ErrorNameTakenI18n,
Expand Down

0 comments on commit e0c42c1

Please sign in to comment.