Slack\RealTimeClient::getBots PHP Méthode

getBots() public méthode

Gets all bots in the Slack team.
public getBots ( ) : React\Promise\PromiseInterface
Résultat React\Promise\PromiseInterface A promise for an array of bots.
    public function getBots()
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }
        return Promise\resolve(array_values($this->bots));
    }