Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VoiceCall

VoiceCall Structure a DM Channel's call (non-bots only)

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysVoiceCall

_keysMerge

_keysMerge: BaseSet<string> = keysMergeVoiceCall

channelId

channelId: string = ""

client

client: ShardClient

messageId

messageId: string = ""

region

region: string = ""

ringing

ringing: BaseCollection<string, null | User> = new BaseCollection<string, null | User>()

unavailable

unavailable: boolean = false

Accessors

amBeingRinged

  • get amBeingRinged(): boolean
  • Returns boolean

channel

  • Returns Channel | null

joined

  • get joined(): boolean
  • Returns boolean

shardId

  • get shardId(): number
  • Returns number

voiceConnection

voiceStates

  • get voiceStates(): BaseCollection<string, VoiceState>
  • Returns BaseCollection<string, VoiceState>

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

isRinging

  • isRinging(userId: string): boolean
  • Parameters

    • userId: string

    Returns boolean

join

  • Parameters

    Returns Promise<null | object>

kill

  • kill(): void
  • Returns void

merge

mergeValue

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

    • key: string
    • value: any

    Returns void

startRinging

  • startRinging(recipients?: Array<string>): Promise<any>
  • Parameters

    • Optional recipients: Array<string>

    Returns Promise<any>

stopRinging

  • stopRinging(recipients?: Array<string>): Promise<any>
  • Parameters

    • Optional recipients: Array<string>

    Returns Promise<any>

toJSON

  • toJSON(): object
  • Returns object

Generated using TypeDoc