Module: Slack::Web::Api::Endpoints::AdminTeamsSettings
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_teams_settings.rb
Instance Method Summary collapse
-
#admin_teams_settings_info(options = {}) ⇒ Object
Fetch information about settings in a workspace.
-
#admin_teams_settings_setDefaultChannels(options = {}) ⇒ Object
Set the default channels of a workspace.
-
#admin_teams_settings_setDescription(options = {}) ⇒ Object
Set the description of a given workspace.
-
#admin_teams_settings_setDiscoverability(options = {}) ⇒ Object
An API method that allows admins to set the discoverability of a given workspace.
-
#admin_teams_settings_setIcon(options = {}) ⇒ Object
Sets the icon of a workspace.
-
#admin_teams_settings_setName(options = {}) ⇒ Object
Set the name of a given workspace.
Instance Method Details
#admin_teams_settings_info(options = {}) ⇒ Object
Fetch information about settings in a workspace
16 17 18 19 |
# File 'lib/slack/web/api/endpoints/admin_teams_settings.rb', line 16 def admin_teams_settings_info( = {}) throw ArgumentError.new('Required arguments :team_id missing') if [:team_id].nil? post('admin.teams.settings.info', ) end |
#admin_teams_settings_setDefaultChannels(options = {}) ⇒ Object
Set the default channels of a workspace.
30 31 32 33 34 |
# File 'lib/slack/web/api/endpoints/admin_teams_settings.rb', line 30 def admin_teams_settings_setDefaultChannels( = {}) throw ArgumentError.new('Required arguments :channel_ids missing') if [:channel_ids].nil? throw ArgumentError.new('Required arguments :team_id missing') if [:team_id].nil? post('admin.teams.settings.setDefaultChannels', ) end |
#admin_teams_settings_setDescription(options = {}) ⇒ Object
Set the description of a given workspace.
45 46 47 48 49 |
# File 'lib/slack/web/api/endpoints/admin_teams_settings.rb', line 45 def admin_teams_settings_setDescription( = {}) throw ArgumentError.new('Required arguments :description missing') if [:description].nil? throw ArgumentError.new('Required arguments :team_id missing') if [:team_id].nil? post('admin.teams.settings.setDescription', ) end |
#admin_teams_settings_setDiscoverability(options = {}) ⇒ Object
An API method that allows admins to set the discoverability of a given workspace
60 61 62 63 64 |
# File 'lib/slack/web/api/endpoints/admin_teams_settings.rb', line 60 def admin_teams_settings_setDiscoverability( = {}) throw ArgumentError.new('Required arguments :discoverability missing') if [:discoverability].nil? throw ArgumentError.new('Required arguments :team_id missing') if [:team_id].nil? post('admin.teams.settings.setDiscoverability', ) end |
#admin_teams_settings_setIcon(options = {}) ⇒ Object
Sets the icon of a workspace.
75 76 77 78 79 |
# File 'lib/slack/web/api/endpoints/admin_teams_settings.rb', line 75 def admin_teams_settings_setIcon( = {}) throw ArgumentError.new('Required arguments :image_url missing') if [:image_url].nil? throw ArgumentError.new('Required arguments :team_id missing') if [:team_id].nil? post('admin.teams.settings.setIcon', ) end |
#admin_teams_settings_setName(options = {}) ⇒ Object
Set the name of a given workspace.
90 91 92 93 94 |
# File 'lib/slack/web/api/endpoints/admin_teams_settings.rb', line 90 def admin_teams_settings_setName( = {}) throw ArgumentError.new('Required arguments :name missing') if [:name].nil? throw ArgumentError.new('Required arguments :team_id missing') if [:team_id].nil? post('admin.teams.settings.setName', ) end |