|
|
@@ -79,6 +79,10 @@ export class SlackCtrl {
|
|
|
// Send response immediately to avoid opelation_timeout error
|
|
|
// See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
|
|
|
|
|
|
+ if (body.text == null) {
|
|
|
+ return 'No text.';
|
|
|
+ }
|
|
|
+
|
|
|
const parsedBody = parseSlashCommand(body);
|
|
|
const executeGrowiCommand = this.growiCommandsMappings[parsedBody.growiCommandType];
|
|
|
await executeGrowiCommand(body);
|