class Slack::BlockKit::Composition::ConversationFilter
Provides a way to filter the list of options in a conversations select menu or conversations multi-select menu.
@param [Array] only - “include” field
api.slack.com/reference/block-kit/composition-objects#filter_conversations api.slack.com/reference/block-kit/block-elements#conversation_multi_select api.slack.com/reference/block-kit/block-elements#conversation_select
Public Class Methods
new(only: nil, exclude_external_shared_channels: nil, exclude_bot_users: nil)
click to toggle source
# File lib/slack/block_kit/composition/conversation_filter.rb, line 15 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
Public Instance Methods
as_json(*)
click to toggle source
# File lib/slack/block_kit/composition/conversation_filter.rb, line 23 def as_json(*) { include: @only, exclude_external_shared_channels: @exclude_external_shared_channels, exclude_bot_users: @exclude_bot_users }.compact end