forked from slack-ruby/slack-api-ref
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchat.command.json
More file actions
31 lines (31 loc) · 813 Bytes
/
chat.command.json
File metadata and controls
31 lines (31 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"group": "chat",
"name": "chat.command",
"desc": "Execute a slash command in a public channel",
"args": {
"channel": {
"required": true,
"example": "C1234567890",
"desc": "Channel to execute the command in.",
"type": "channel"
},
"command": {
"required": true,
"example": "/who",
"desc": "Slash command to be executed. Leading backslash is required."
},
"text": {
"required": false,
"example": "Hello world",
"desc": "Additional parameters provided to the slash command."
}
},
"response": {
"examples": [
"{\n \"ok\": true\n \"response\": \"Users here: ...\"\n}"
]
},
"errors": {
"missing_scope": "The calling token is not granted the necessary scopes to complete this operation."
}
}