/command in the message composer.
The event provides access to the channel where the command was invoked, allowing
you to post responses using standard SDK methods.
Properties
string
required
The slash command name (e.g., “/help”)
unknown
required
Platform-specific raw payload
string
required
Arguments text after the command (e.g., “topic search” from “/help topic search”)
string
Trigger ID for opening modals (time-limited, typically ~3 seconds)
Methods
openModal()
Parameters
required
The modal element to display (JSX or ModalElement)
Returns
Promise<{ viewId: string } | undefined>
The view/dialog ID, or undefined if modals are not supported