본문으로 건너뛰기

MessageService

Index

Constructors

constructor

Properties

publicreadonlyhttpRequest

httpRequest: BaseHttpRequest

Methods

publicmessageCreate

publicmessageInfo

  • Get a message's information Bot-compatible Retrieves information about a message.

    @throws

    ApiError


    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.

    @throws

    ApiError


    Parameters

    • __namedParameters: { channelId: string; limit?: number; offset?: string }

    Returns CancelablePromise<{ data?: GetMessageListResponse }>

    any Successfully retrieved the messages.

publicmessageReactionCreate

publicmessageReactionRemove

  • Remove a reaction emoji from a message Removes a reaction emoji from a message.

    @throws

    ApiError


    Parameters

    Returns CancelablePromise<any>

    any Successfully removed the reaction.

publicmessageRemove

  • Delete a message Bot-compatible Deletes a message in a channel.

    @throws

    ApiError


    Parameters

    Returns CancelablePromise<any>

    any Successfully deleted the message.

publicpostApiMessageShare

  • Share a message to a channel Shares a message to a channel.

    @throws

    ApiError


    Parameters

    • __namedParameters: { requestBody?: { channel_id?: string; message_id?: string } }

    Returns CancelablePromise<{ data?: CreateMessageFromMailResponse }>

    any OK

publicpostApiMessageTaskShare