WebhookEvent
in package
Table of Contents
Constants
- TYPE_ACTION : mixed = 'action'
- TYPE_MESSAGE : mixed = 'message'
- TYPE_REACTION : mixed = 'reaction'
- TYPE_SLASH_COMMAND : mixed = 'slash_command'
- TYPE_STATUS : mixed = 'status'
Properties
Methods
- __construct() : mixed
Constants
TYPE_ACTION
public
mixed
TYPE_ACTION
= 'action'
TYPE_MESSAGE
public
mixed
TYPE_MESSAGE
= 'message'
TYPE_REACTION
public
mixed
TYPE_REACTION
= 'reaction'
TYPE_SLASH_COMMAND
public
mixed
TYPE_SLASH_COMMAND
= 'slash_command'
TYPE_STATUS
public
mixed
TYPE_STATUS
= 'status'
Properties
$originId read-only
public
string|null
$originId
= null
$payload read-only
public
mixed
$payload
$threadId read-only
public
string
$threadId
$type read-only
public
string
$type
Methods
__construct()
public
__construct("message"|"action"|"reaction"|"status"|"slash_command" $type, string $threadId, mixed $payload[, string|null $originId = null ]) : mixed
Parameters
- $type : "message"|"action"|"reaction"|"status"|"slash_command"
- $threadId : string
- $payload : mixed
-
Message for TYPE_MESSAGE, array for all others
- $originId : string|null = null