Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MessageService

Index

Constructors

constructor

Properties

base

base: Base

Methods

createMessage

  • createMessage(team: string, channel: string, thread: string, content: string, type?: string): Promise<Message>

deleteMessage

  • deleteMessage(team: string, channel: string, thread: string, slug: string): Promise<boolean>
  • Delete Message.

    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>>

getMessage

  • getMessage(team: string, channel: string, thread: string, slug: string): Promise<Message>

updateMessage

  • updateMessage(team: string, channel: string, thread: string, slug: string, content?: string, type?: string): Promise<Message>
  • Update Message.

    Parameters

    • team: string
    • channel: string
    • thread: string
    • slug: string
    • Optional content: string
    • Optional type: string

    Returns Promise<Message>

Static makeCollectionFromResponse

Static makeMessage

Static makeMessageFromResponse

  • makeMessageFromResponse(response: any): Message