|
|
@@ -1,8 +1,7 @@
|
|
|
-import { SlashCommand } from '@slack/bolt';
|
|
|
import { WebClient, LogLevel } from '@slack/web-api';
|
|
|
-import { generateInputSectionBlock, generateMarkdownSectionBlock } from '../../../slack/src/utils/block-creater';
|
|
|
+import { generateInputSectionBlock, generateMarkdownSectionBlock } from '@growi/slack/src/utils/block-creater';
|
|
|
|
|
|
-export const openRegisterModal = async(body:SlashCommand) : Promise<void> => {
|
|
|
+export const openRegisterModal = async(body:{[key:string]:string}) : Promise<void> => {
|
|
|
|
|
|
const client = new WebClient('xoxb-1399660543842-1848670292404-TYsbWjgHPtNcTvqupgwb3h75', { logLevel: LogLevel.DEBUG });
|
|
|
await client.views.open({
|
|
|
@@ -19,7 +18,7 @@ export const openRegisterModal = async(body:SlashCommand) : Promise<void> => {
|
|
|
},
|
|
|
blocks: [
|
|
|
generateMarkdownSectionBlock('hoge'),
|
|
|
- // generateInputSectionBlock('contents', 'Contents', 'contents_input', true, 'Input with Markdown...'),
|
|
|
+ generateInputSectionBlock('contents', 'Contents', 'contents_input', true, 'Input with Markdown...'),
|
|
|
|
|
|
],
|
|
|
},
|