slack.commands
- Commands¶
-
class
slack.commands.
Command
(raw_command: MutableMapping[KT, VT], verification_token: Optional[str] = None, team_id: Optional[str] = None)[source]¶ MutableMapping representing a slack slash command.
Parameters: raw_command – Decoded body of the webhook HTTP request Raises: slack.exceptions.FailedVerification
– when verification_token or team_id does not match the incoming command’s
-
class
slack.commands.
Router
[source]¶ When creating slash command for your applications each one can have a custom webhook url. For ease of configuration this class provide a routing mechanisms based on the command so that each command can define the same webhook url.