Sha256: 669b3a657ff173b418a804248252c3a7c8733a044afc2a0cd9bd66cd95c16503
Contents?: true
Size: 1.54 KB
Versions: 4
Compression:
Stored size: 1.54 KB
Contents
# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Web module Api module Endpoints module ConversationsExternalinvitepermissions # # Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'. # # @option options [enum] :action # Type of action to be taken: upgrade or downgrade. # @option options [channel] :channel # The channel ID to change external invite permissions for. # @option options [Object] :target_team # The encoded team ID of the target team. Must be in the specified channel. # @see https://api.slack.com/methods/conversations.externalInvitePermissions.set # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations.externalInvitePermissions/conversations.externalInvitePermissions.set.json def conversations_externalInvitePermissions_set(options = {}) raise ArgumentError, 'Required arguments :action missing' if options[:action].nil? raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil? raise ArgumentError, 'Required arguments :target_team missing' if options[:target_team].nil? options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel] post('conversations.externalInvitePermissions.set', options) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems