( ts: string, text: string, channel: string )
| 36 | * Creates a default message object when the API doesn't return one |
| 37 | */ |
| 38 | export function createDefaultMessageObject( |
| 39 | ts: string, |
| 40 | text: string, |
| 41 | channel: string |
| 42 | ): Record<string, any> { |
| 43 | return { |
| 44 | type: 'message', |
| 45 | ts, |
| 46 | text, |
| 47 | channel, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Formats the success response for a sent message |
no outgoing calls
no test coverage detected