MessageService
Index
Constructors
constructor
Parameters
httpRequest: BaseHttpRequest
Returns MessageService
Properties
publicreadonlyhttpRequest
Methods
publicmessageCreate
Parameters
__namedParameters: { requestBody: CreateMessageParam }
Returns CancelablePromise<{ data?: CreateMessageResponse }>
any Successfully created the message.
publicmessageInfo
Get a message's information
Bot-compatible
Retrieves information about a message.Parameters
__namedParameters: { id: string }
Returns CancelablePromise<{ data?: Message }>
any Successfully retrieved information about the message.
publicmessageList
List out messages
Bot-compatible
Lists out a given number of messages in a channel. This method uses the Swit API's pagination scheme.Parameters
__namedParameters: { channelId: string; limit?: number; offset?: string }
Returns CancelablePromise<{ data?: GetMessageListResponse }>
any Successfully retrieved the messages.
publicmessageReactionCreate
React to a message Adds a reaction emoji to a message.
Parameters
__namedParameters: { requestBody: AddMessageReactionParam }
Returns CancelablePromise<{ data?: AddMessageReactionResponse }>
any Successfully added the reaction.
publicmessageReactionRemove
Remove a reaction emoji from a message Removes a reaction emoji from a message.
Parameters
__namedParameters: { requestBody: DelMessageReactionParam }
Returns CancelablePromise<any>
any Successfully removed the reaction.
publicmessageRemove
Delete a message
Bot-compatible
Deletes a message in a channel.Parameters
__namedParameters: { requestBody: DeleteMessageParam }
Returns CancelablePromise<any>
any Successfully deleted the message.
publicpostApiMessageShare
Share a message to a channel Shares a message to a channel.
Parameters
__namedParameters: { requestBody?: { channel_id?: string; message_id?: string } }
Returns CancelablePromise<{ data?: CreateMessageFromMailResponse }>
any OK
publicpostApiMessageTaskShare
Share a task to a channel Shares a task to a channel.
Parameters
__namedParameters: { requestBody?: { channel_id?: string; task_id?: string } }
Returns CancelablePromise<{ data?: CreateMessageFromMailResponse }>
any OK
Create a message
Bot-compatible
Creates a message in a channel.ApiError