Slide 12
Slide 12 text
Boltで実装した場合
export const register = (app: App) => {
app.command('/register-word', async ({ ack, body, context, command }) => {
await ack()
await app.client.views.open({
token: context.botToken,
trigger_id: body.trigger_id ,
view: {
type: 'modal',
callback_id: VIEW_ID,
...
})
app.view(VIEW_ID, async ({ ack, view, context, body }) => {
await ack()
...
})
}
App.commandでイベントを
定義
App.viewはview上の実装
基本的にformの操作など