detritus
On this page

Presences Collection

import { Collections } from 'detritus-client';

Collections.Presences;
BaseCollectionMixin<K, V>BaseCollection<K, V>BaseClientCollection<string, Presence>Presences

Constructor

Properties

_guildUserIds
Map<string, Set<string>>
readonly
enabled
boolean

Accessors

[toStringTag]
string
get
Overrides BaseClientCollection.[toStringTag]

Methods

clearGuildId()

src/collections/presences.ts:139
clearGuildId(guildId: string): void

Removes the guild from every cached presence, deleting the presences left without one

deleteGuildId()

src/collections/presences.ts:160
deleteGuildId(userId: string, guildId: string): boolean

Removes a guild from a user's cached presence (like when they leave it), deleting the presence once it has no guild left