Explorar o código

use generateMarkdownSectionBlock

zahmis %!s(int64=5) %!d(string=hai) anos
pai
achega
9f25982ac0
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/server/service/bolt.js

+ 4 - 1
src/server/service/bolt.js

@@ -295,7 +295,10 @@ class BoltService {
         logger.error('Failed to create page in GROWI.');
         client.chat.postMessage({
           channel: body.user.id,
-          text: `*Cannot create new page to existed path*\n contents\n ${view.state.values.contents.contents_input.value}`,
+          blocks: [
+            this.generateMarkdownSectionBlock('*Cannot create new page to existed path*\n contents'),
+            this.generateMarkdownSectionBlock(view.state.values.contents.contents_input.value),
+          ],
         });
       }
     }