Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Reaction

Reaction Structure, used in [Message] we don't store the userIds since we only get them on reaction adds

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysReaction

_keysMerge

_keysMerge: BaseSet<string> = keysMergeReaction

channelId

channelId: string = ""

client

client: ShardClient

count

count: number = 0

emoji

emoji: Emoji

Optional guildId

guildId: undefined | string

isPartial

isPartial: boolean = false

me

me: boolean = false

messageId

messageId: string = ""

Accessors

canClear

  • get canClear(): boolean
  • Returns boolean

channel

  • Returns Channel | null

guild

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

message

  • Returns Message | null

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

add

  • add(): Promise<any>
  • Returns Promise<any>

clear

  • clear(): Promise<any>
  • Returns Promise<any>

delete

  • delete(userId?: string): Promise<any>
  • Parameters

    • Default value userId: string = "@me"

    Returns Promise<any>

deleteAll

  • deleteAll(): Promise<any>
  • Returns Promise<any>

difference

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

    • key: string
    • value: any

    Returns [boolean, any]

differences

fetchUsers

  • fetchUsers(options?: FetchReactions): Promise<BaseCollection<string, User>>
  • Parameters

    • Default value options: FetchReactions = {}

    Returns Promise<BaseCollection<string, User>>

merge

mergeValue

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

    • key: string
    • value: any

    Returns void

toJSON

  • toJSON(): object
  • Returns object

Generated using TypeDoc