Explorar o código

add new constructor

Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
207dff4755
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/server/service/slackbot.js

+ 2 - 0
src/server/service/slackbot.js

@@ -17,6 +17,7 @@ class SlackBotService extends S2sMessageHandlable {
     this.lastLoadedAt = null;
 
     this.initialize();
+    this.channel_id = '';
   }
 
   initialize() {
@@ -241,6 +242,7 @@ class SlackBotService extends S2sMessageHandlable {
   }
 
   async createModal(client, body) {
+    this.channel_id = body.channel_id;
     try {
       await client.views.open({
         trigger_id: body.trigger_id,