Methods
createMessage
- createMessage(team: string, channel: string, thread: string, content: string, type?: string): Promise<Message>
-
Parameters
-
team: string
-
channel: string
-
thread: string
-
content: string
-
Optional type: string
Returns Promise<Message>
deleteMessage
- deleteMessage(team: string, channel: string, thread: string, slug: string): Promise<boolean>
-
Parameters
-
team: string
-
channel: string
-
thread: string
-
slug: string
Returns Promise<boolean>
getAllMessages
- getAllMessages(team: string, channel: string, thread: string, page?: string, limit?: string): Promise<BaseCollection<Message>>
-
Parameters
-
team: string
-
channel: string
-
thread: string
-
Default value page: string = "1"
-
Optional limit: string
getMessage
- getMessage(team: string, channel: string, thread: string, slug: string): Promise<Message>
-
Parameters
-
team: string
-
channel: string
-
thread: string
-
slug: string
Returns Promise<Message>
updateMessage
- updateMessage(team: string, channel: string, thread: string, slug: string, content?: string, type?: string): Promise<Message>
-
Parameters
-
team: string
-
channel: string
-
thread: string
-
slug: string
-
Optional content: string
-
Optional type: string
Returns Promise<Message>
Static makeCollectionFromResponse
Static makeMessageFromResponse
- makeMessageFromResponse(response: any): Message
Create Message.