Class ConversationsFilter
java.lang.Object
com.slack.api.model.block.element.ConversationsFilter
Filter object for conversation lists
Provides a way to filter the list of options in a conversations select menu or conversations multi-select menu.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConversationsFilter(List<String> include, Boolean excludeExternalSharedChannels, Boolean excludeBotUsers) Creates a newConversationsFilterinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanIndicates whether to exclude bot users from conversation lists.Indicates whether to exclude external shared channels from conversation lists.Indicates which type of conversations should be included in the list.inthashCode()voidsetExcludeBotUsers(Boolean excludeBotUsers) Indicates whether to exclude bot users from conversation lists.voidsetExcludeExternalSharedChannels(Boolean excludeExternalSharedChannels) Indicates whether to exclude external shared channels from conversation lists.voidsetInclude(List<String> include) Indicates which type of conversations should be included in the list.toString()
-
Constructor Details
-
ConversationsFilter
public ConversationsFilter(List<String> include, Boolean excludeExternalSharedChannels, Boolean excludeBotUsers) Creates a newConversationsFilterinstance.- Parameters:
include- Indicates which type of conversations should be included in the list. When this field is provided, any conversations that do not match will be excluded. You should provide an array of strings from the following options: im, mpim, private, and public. The array cannot be empty.excludeExternalSharedChannels- Indicates whether to exclude external shared channels from conversation lists. Defaults to false.excludeBotUsers- Indicates whether to exclude bot users from conversation lists. Defaults to false.
-
ConversationsFilter
public ConversationsFilter()
-
-
Method Details
-
builder
-
getInclude
Indicates which type of conversations should be included in the list. When this field is provided, any conversations that do not match will be excluded. You should provide an array of strings from the following options: im, mpim, private, and public. The array cannot be empty. -
getExcludeBotUsers
Indicates whether to exclude bot users from conversation lists. Defaults to false. -
setInclude
Indicates which type of conversations should be included in the list. When this field is provided, any conversations that do not match will be excluded. You should provide an array of strings from the following options: im, mpim, private, and public. The array cannot be empty. -
setExcludeBotUsers
Indicates whether to exclude bot users from conversation lists. Defaults to false. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-