Constructors
Methods
create
create( channelId: string, body: RESTPostAPIChannelMessageJSONBody,): Promise<Result<APIMessage, RESTError | Error>> Parameters
- channelId: string
- body: RESTPostAPIChannelMessageJSONBody
Returns Promise<Result<APIMessage, RESTError | Error>>
get
get( channelId: string, messageId: string,): Promise<Result<APIMessage, RESTError | Error>> Parameters
- channelId: string
- messageId: string
Returns Promise<Result<APIMessage, RESTError | Error>>
getMany
getMany( channelId: string, option?: RESTGetAPIChannelMessagesQuery,): Promise<Result<RESTGetAPIChannelMessagesResult, RESTError | Error>> Parameters
- channelId: string
Optional
option: RESTGetAPIChannelMessagesQuery
Returns Promise<Result<RESTGetAPIChannelMessagesResult, RESTError | Error>>
Controller for message features.