Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageReference

Channel Message Reference Structure, used to tell the client that this is from a server webhook Used for crossposts

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysMessageReference

channelId

channelId: string = ""

client

client: ShardClient

guildId

guildId: string = ""

message

message: Message

Optional messageId

messageId: undefined | string

Accessors

channel

  • Returns null | Channel

guild

  • get guild(): null | Guild
  • Returns null | Guild

shardId

  • get shardId(): number
  • Returns number

Methods

[inspect.custom]

  • [inspect.custom](): object

_getFromSnake

  • _getFromSnake(key: string): any
  • Parameters

    • key: string

    Returns any

_setFromSnake

  • _setFromSnake(key: string, value: any): any
  • Parameters

    • key: string
    • value: any

    Returns any

difference

  • difference(key: string, value: any): [boolean, any]
  • Parameters

    • key: string
    • value: any

    Returns [boolean, any]

differences

merge

mergeValue

  • mergeValue(key: string, value: any): void
  • Parameters

    • key: string
    • value: any

    Returns void

toJSON

  • toJSON(): object
  • Returns object

Generated using TypeDoc