growi-command-processor.ts 379 B

123456789
  1. import { AuthorizeResult } from '@slack/oauth';
  2. import { GrowiCommand } from './growi-command';
  3. export interface GrowiCommandProcessor<ProcessCommandContext = {[key: string]: string}> {
  4. shouldHandleCommand(growiCommand?: GrowiCommand): boolean;
  5. processCommand(growiCommand: GrowiCommand, authorizeResult: AuthorizeResult, context?: ProcessCommandContext): Promise<void>
  6. }