Copied!
CloneableInstantiable
Methods
public Maknz\Slack\Payload::__construct(array $attributes)
 

Instantiate a new payload.

  • param array $attributes
public areBotsExcluded()
 

Get whether bots are excluded.

  • return bool
public areSharedChannelsExcluded()
 

Get whether shared channels from other organisations are excluded.

  • return bool
public getTypes()
 

Get the types of conversations to be included.

  • return string[]
public setExcludeBots( $excludeBots = true)
 

Set whether bots are excluded.

  • param bool $excludeBots
  • return $this
public setExcludeSharedChannels( $excludeSharedChannels = true)
 

Set whether shared channels from other organisations are excluded.

  • param bool $excludeSharedChannels
  • return $this
public setTypes(array $types)
 

Set the types of conversations to be included.

  • param string[] $text
  • return $this
  • throws \InvalidArgumentException
public toArray()
 

Convert the block to its array representation.

  • return array
Properties
protected static $availableAttributes = ['include' => 'types', 'exclude_external_shared_channels' => 'exclude_shared_channels', 'exclude_bot_users' => 'exclude_bots']
 

Internal attribute to property map.

  • var array
protected $exclude_bots = false
 

Whether to exclude bot users.

  • var bool
protected $exclude_shared_channels = false
 

Whether to exclude shared channels from other organisations.

  • var bool
protected $types = NULL
 

Types of conversations to include in the list.

  • var string[]
Methods
protected Maknz\Slack\Payload::fillProperties(array $attributes) : self
 
  • param array $attributes
  • return $this
Properties
protected static $availableAttributes = ['include' => 'types', 'exclude_external_shared_channels' => 'exclude_shared_channels', 'exclude_bot_users' => 'exclude_bots']
 

Internal attribute to property map.

  • var array
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration