Mentions Object
An array of information about a user , a channel or a bot mentioned in a conversation. The object structure varies according to the type of mention.
$user mentions:
Each user mentions object comes with the properties of the $user.
Attribute | Description |
type | user ($user properties) |
{
"country": "us",
"timezone": "Asia/calcutta",
"last_name": "Fisher",
"first_name": "Scott",
"language": "en",
"id": "123456",
"type":"user",
"email": "scott.fisher@zylcal.com"
}
Bot mentions:
The object structure comes with the below given properties upon mentioning a bot in the conversation with a user or within a channel.
Attribute | Description |
name | Name of the bot mentioned |
id | The bot's unique ID |
type | bot |
{
"name": "Support Bot",
"id": "b-1775998000015152705",
"type": "bot"
}