Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Session

Discord Session Structure (Users Only)

Hierarchy

Index

Constructors

constructor

Properties

Optional _activities

_activities: BaseCollection<string, PresenceActivity>

_keys

_keys: BaseSet<string> = keysSession

_keysMerge

_keysMerge: BaseSet<string> = keysMergeSession

active

active: boolean = false

client

client: ShardClient

clientInfo

clientInfo: SessionClientInfo

sessionId

sessionId: string = "all"

status

status: string = PresenceStatuses.OFFLINE

Accessors

activities

  • Returns BaseCollection<string, PresenceActivity>

activity

game

isDnd

  • get isDnd(): boolean
  • Returns boolean

isIdle

  • get isIdle(): boolean
  • Returns boolean

isOffline

  • get isOffline(): boolean
  • Returns boolean

isOnline

  • get isOnline(): boolean
  • Returns boolean

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