Overview
  • Namespace
  • Class

Namespaces

  • Slack
    • Message

Classes

  • Slack\ApiClient
  • Slack\Bot
  • Slack\Channel
  • Slack\ClientObject
  • Slack\DataObject
  • Slack\DirectMessageChannel
  • Slack\Group
  • Slack\Message\Attachment
  • Slack\Message\AttachmentBuilder
  • Slack\Message\AttachmentField
  • Slack\Message\Message
  • Slack\Message\MessageBuilder
  • Slack\Payload
  • Slack\RealTimeClient
  • Slack\Team
  • Slack\User

Interfaces

  • Slack\ChannelInterface
  • Slack\Exception

Exceptions

  • Slack\ApiException
  • Slack\ConnectionException
  • Slack\UserNotFoundException
 1 <?php
 2 
 3 namespace Slack;
 4 
 5 /**
 6  * Contains information about a bot.
 7  */
 8 class Bot extends ClientObject
 9 {
10     /**
11      * Gets the bot's ID.
12      *
13      * @return string The bot's ID.
14      */
15     public function getId()
16     {
17         return $this->data['id'];
18     }
19 
20     /**
21      * Gets the name of the bot.
22      *
23      * @return string The name of the bot.
24      */
25     public function getName()
26     {
27         return $this->data['name'];
28     }
29 
30     /**
31      * Checks if the bot is deleted.
32      *
33      * @return bool True if the bot is deleted.
34      */
35     public function isDeleted()
36     {
37         return $this->data['deleted'];
38     }
39 
40     /**
41       * Bot icon image URL 36x36px
42       *
43       * @return string URL of the 36x36px bot icon image
44       */
45      public function getIconImage36()
46      {
47          return $this->data['icons']['image_36'];
48      }
49 
50      /**
51       * Bot icon image URL 48x48px
52       *
53       * @return string URL of the 48x48px bot icon image
54       */
55      public function getIconImage48()
56      {
57          return $this->data['icons']['image_48'];
58      }
59 
60      /**
61       * Bot icon image URL 72x72px
62       *
63       * @return string URL of the 72x72px bot icon image
64       */
65      public function getIconImage72()
66      {
67          return $this->data['icons']['image_72'];
68      }
69 }
70 
API documentation generated by ApiGen