Sha256: b0e91ddf14b6f6013b5c772b2c68ef98373f405a5e99eaf3c3b884bc5eed1cd3
Contents?: true
Size: 1.11 KB
Versions: 19
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true module Slack module BlockKit module Composition # Provides a way to filter the list of options in a conversations select menu # or conversations multi-select menu. # # @param [Array] only - "include" field # # https://api.slack.com/reference/block-kit/composition-objects#filter_conversations # https://api.slack.com/reference/block-kit/block-elements#conversation_multi_select # https://api.slack.com/reference/block-kit/block-elements#conversation_select class ConversationFilter def initialize(only: nil, exclude_external_shared_channels: nil, exclude_bot_users: nil) @only = only @exclude_external_shared_channels = exclude_external_shared_channels @exclude_bot_users = exclude_bot_users end def as_json(*) { include: @only, exclude_external_shared_channels: @exclude_external_shared_channels, exclude_bot_users: @exclude_bot_users }.compact end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems