UNPKG

pipebomb.js

Version:

Library for interacting with Pipe Bomb servers

15 lines (14 loc) 578 B
import Context from "../Context.js"; import TrackCache from "../music/TrackCache.js"; import Playlist from "./Playlist.js"; import TrackList from "./TrackList.js"; export default class CollectionCache { private readonly context; private readonly trackCache; private readonly cacheTime; private collections; constructor(context: Context, trackCache: TrackCache, cacheTime: number); setCollection(collection: Playlist | TrackList): TrackList | Playlist; getCollection(collectionID: string): Playlist | TrackList | null; private deleteCollection; }