Module: Slack::Web::Api::Endpoints::AdminFunctionsPermissions
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_functions_permissions.rb
Instance Method Summary collapse
-
#admin_functions_permissions_lookup(options = {}) ⇒ Object
Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities.
-
#admin_functions_permissions_set(options = {}) ⇒ Object
Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities.
Instance Method Details
#admin_functions_permissions_lookup(options = {}) ⇒ Object
Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities.
16 17 18 19 |
# File 'lib/slack/web/api/endpoints/admin_functions_permissions.rb', line 16 def ( = {}) raise ArgumentError, 'Required arguments :function_ids missing' if [:function_ids].nil? post('admin.functions.permissions.lookup', ) end |
#admin_functions_permissions_set(options = {}) ⇒ Object
Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities
32 33 34 35 36 |
# File 'lib/slack/web/api/endpoints/admin_functions_permissions.rb', line 32 def ( = {}) raise ArgumentError, 'Required arguments :function_id missing' if [:function_id].nil? raise ArgumentError, 'Required arguments :visibility missing' if [:visibility].nil? post('admin.functions.permissions.set', ) end |