Slack\ApiClient::send PHP Method

send() public method

Sends a regular text message to a given channel.
public send ( string $text, slack\ChannelInterface $channel ) : React\Promise\PromiseInterface
$text string The message text.
$channel slack\ChannelInterface The channel to send the message to.
return React\Promise\PromiseInterface
    public function send($text, ChannelInterface $channel)
    {
        $message = $this->getMessageBuilder()->setText($text)->setChannel($channel)->create();
        return $this->postMessage($message);
    }