UNPKG

detritus-client

Version:

A Typescript NodeJS library to interact with Discord's API, both Rest and Gateway.

22 lines (21 loc) 557 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sessions = void 0; const basecollection_1 = require("./basecollection"); ; /** * Sessions Collection * (Bots cannot fill this) * @category Collections */ class Sessions extends basecollection_1.BaseClientCollection { insert(session) { if (this.enabled) { this.set(session.sessionId, session); } } get [Symbol.toStringTag]() { return `Sessions (${this.size.toLocaleString()} items)`; } } exports.Sessions = Sessions;