Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GroupChannel

Hierarchy

Index

Constructors

constructor

Properties

client

client: Client

createdAt

createdAt: number

icon

icon: null | string

iconURL

iconURL: null | string

id

id: string

lastMessageID

lastMessageID: string

mention

mention: string

messages

name

name: string

ownerID

ownerID: string

recipient

recipient: User

recipients

recipients: Collection<User>

type

type: 3

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>

addRecipient

  • addRecipient(userID: string): Promise<void>
  • Parameters

    • userID: string

    Returns Promise<void>

createMessage

deleteMessage

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

    • messageID: string
    • Optional reason: string

    Returns Promise<void>

dynamicIconURL

  • dynamicIconURL(format?: "jpg" | "jpeg" | "png" | "webp" | "gif", size?: number): null | string
  • Parameters

    • Optional format: "jpg" | "jpeg" | "png" | "webp" | "gif"
    • Optional size: number

    Returns null | string

edit

  • edit(options: { icon?: string; name?: string; ownerID?: string }): Promise<GroupChannel>
  • Parameters

    • options: { icon?: string; name?: string; ownerID?: string }
      • Optional icon?: string
      • Optional name?: string
      • Optional ownerID?: string

    Returns Promise<GroupChannel>

editMessage

getMessage

getMessageReaction

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

getMessages

getPins

inspect

leave

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

pinMessage

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

    • messageID: string

    Returns Promise<void>

removeMessageReaction

  • removeMessageReaction(messageID: string, reaction: string): Promise<void>
  • removeMessageReaction(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>

removeRecipient

  • removeRecipient(userID: string): Promise<void>
  • Parameters

    • userID: string

    Returns Promise<void>

ring

  • ring(recipient: string[]): void
  • Parameters

    • recipient: string[]

    Returns void

sendTyping

  • sendTyping(): Promise<void>

syncCall

  • syncCall(): void

toJSON

toString

  • toString(): string

unpinMessage

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

    • messageID: string

    Returns Promise<void>

unsendMessage

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

    • messageID: string

    Returns Promise<void>

Static from

Static getCreatedAt

  • getCreatedAt(id: string): number

Static getDiscordEpoch

  • getDiscordEpoch(id: string): number

Generated using TypeDoc