1 | <?php |
||
7 | class SlashCommandListener extends AbstractBaseListener |
||
8 | { |
||
9 | const KEY = 'slashCommand'; |
||
10 | const VERIFICATION_TOKEN = 'verificationToken'; |
||
11 | const MISSING_TOKEN_MESSAGE = 'Token is missing'; |
||
12 | const MISSING_TOKEN_CONFIG_MESSAGE = 'Token must be set in the config'; |
||
13 | |||
14 | /** |
||
15 | * @return mixed |
||
16 | */ |
||
17 | 9 | public function extractRequest() |
|
28 | |||
29 | /** |
||
30 | * @throws \Exception |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | 6 | public function verifyOrigin(): array |
|
63 | |||
64 | /** |
||
65 | * @throws \Exception |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | 11 | public function isThisBot(): bool |
|
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | 3 | public function getChannelId(): string |
|
84 | } |
||
85 |