Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GuildTextable

Hierarchy

Implemented by

Index

Properties

lastMessageID

lastMessageID: string

lastPinTimestamp

lastPinTimestamp: null | number

messages

rateLimitPerUser

rateLimitPerUser: number

topic

topic: null | string

Methods

addMessageReaction

  • addMessageReaction(messageID: string, reaction: string): Promise<void>
  • addMessageReaction(messageID: string, reaction: string, userID: string): Promise<void>
  • Parameters

    • messageID: string
    • reaction: string

    Returns Promise<void>

  • deprecated

    Parameters

    • messageID: string
    • reaction: string
    • userID: string

    Returns Promise<void>

createMessage

createWebhook

  • createWebhook(options: { avatar?: undefined | null | string; name: string }, reason?: string): Promise<Webhook>
  • Parameters

    • options: { avatar?: undefined | null | string; name: string }
      • Optional avatar?: undefined | null | string
      • name: string
    • Optional reason: string

    Returns Promise<Webhook>

deleteMessage

  • deleteMessage(messageID: string, reason?: string): Promise<void>
  • Parameters

    • messageID: string
    • Optional reason: string

    Returns Promise<void>

deleteMessages

  • deleteMessages(messageIDs: string[], reason?: string): Promise<void>
  • Parameters

    • messageIDs: string[]
    • Optional reason: string

    Returns Promise<void>

editMessage

getMessage

getMessageReaction

  • getMessageReaction(messageID: string, reaction: string, limit?: number, before?: string, after?: string): Promise<User[]>
  • Parameters

    • messageID: string
    • reaction: string
    • Optional limit: number
    • Optional before: string
    • Optional after: string

    Returns Promise<User[]>

getMessages

  • getMessages(limit?: number, before?: string, after?: string, around?: string): Promise<Message<TextableChannel>[]>
  • Parameters

    • Optional limit: number
    • Optional before: string
    • Optional after: string
    • Optional around: string

    Returns Promise<Message<TextableChannel>[]>

getPins

getWebhooks

  • getWebhooks(): Promise<Webhook[]>
  • Returns Promise<Webhook[]>

pinMessage

  • pinMessage(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

purge

  • purge(limit: number, filter?: (message: Message<GuildTextable>) => boolean, before?: string, after?: string, reason?: string): Promise<number>
  • Parameters

    Returns Promise<number>

removeMessageReaction

  • removeMessageReaction(messageID: string, reaction: string, userID?: string): Promise<void>
  • Parameters

    • messageID: string
    • reaction: string
    • Optional userID: string

    Returns Promise<void>

removeMessageReactionEmoji

  • removeMessageReactionEmoji(messageID: string, reaction: string): Promise<void>
  • Parameters

    • messageID: string
    • reaction: string

    Returns Promise<void>

removeMessageReactions

  • removeMessageReactions(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

sendTyping

  • sendTyping(): Promise<void>
  • Returns Promise<void>

unpinMessage

  • unpinMessage(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

unsendMessage

  • unsendMessage(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

Generated using TypeDoc