Module: Slack::Web::Api::Endpoints::ConversationsExternalinvitepermissions
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb
Instance Method Summary collapse
-
#conversations_externalInvitePermissions_set(options = {}) ⇒ Object
Upgrade or downgrade Slack Connect channel permissions between ‘can post only’ and ‘can post and invite’.
Instance Method Details
#conversations_externalInvitePermissions_set(options = {}) ⇒ Object
Upgrade or downgrade Slack Connect channel permissions between ‘can post only’ and ‘can post and invite’.
20 21 22 23 24 25 26 |
# File 'lib/slack/web/api/endpoints/conversations_externalInvitePermissions.rb', line 20 def conversations_externalInvitePermissions_set( = {}) raise ArgumentError, 'Required arguments :action missing' if [:action].nil? raise ArgumentError, 'Required arguments :channel missing' if [:channel].nil? raise ArgumentError, 'Required arguments :target_team missing' if [:target_team].nil? = .merge(channel: conversations_id()['channel']['id']) if [:channel] post('conversations.externalInvitePermissions.set', ) end |