Options
All
  • Public
  • Public/Protected
  • All
Menu

Presence Structure, used to detail a user's presence in a guild (or general if you have them added (non-bots only))

Hierarchy

Index

Constructors

constructor

Properties

Optional _activities

_activities: BaseCollection<string, PresenceActivity>

_guildIds

_guildIds: string | BaseSet<string> = ''

Readonly _keys

_keys: BaseSet<string> = ...

Readonly _keysMerge

_keysMerge: BaseSet<string> = ...

Readonly _keysSkipDifference

_keysSkipDifference: BaseSet<string> = ...

Readonly client

client: ShardClient

Optional clientStatus

clientStatus: { desktop?: string; mobile?: string; web?: string }

Type declaration

  • Optional desktop?: string
  • Optional mobile?: string
  • Optional web?: string

lastGuildId

lastGuildId: string = ...

Optional lastModified

lastModified: number

status

status: string = ...

user

user: User

Accessors

_shouldDelete

  • get _shouldDelete(): boolean

activities

activity

game

guildIds

isClone

  • get isClone(): boolean

isDnd

  • get isDnd(): boolean

isIdle

  • get isIdle(): boolean

isOffline

  • get isOffline(): boolean

isOnline

  • get isOnline(): boolean

shardId

  • get shardId(): number

showMobileIcon

  • get showMobileIcon(): boolean

Methods

[custom]

  • [custom](): object

_deleteGuildId

  • _deleteGuildId(guildId: string): void

_getFromSnake

  • _getFromSnake(key: string): any

_hasGuildId

  • _hasGuildId(guildId: string): boolean

_setFromSnake

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

activitiesFor

activityFor

clone

difference

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

differences

differencesBetween

  • differencesBetween(structure: Structure): null | object

hasDifference

  • hasDifference(key: string, value: any): boolean

hasDifferences

hasDifferencesBetween

  • hasDifferencesBetween(structure: Structure): boolean

merge

mergeValue

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

toJSON

  • toJSON(): object

toString

  • toString(): string

Generated using TypeDoc