mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
feat(Managers): add customizable caching for managers (#6013)
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const BaseManager = require('./BaseManager');
|
||||
const CachedManager = require('./CachedManager');
|
||||
const VoiceState = require('../structures/VoiceState');
|
||||
|
||||
/**
|
||||
* Manages API methods for VoiceStates and stores their cache.
|
||||
* @extends {BaseManager}
|
||||
* @extends {CachedManager}
|
||||
*/
|
||||
class VoiceStateManager extends BaseManager {
|
||||
class VoiceStateManager extends CachedManager {
|
||||
constructor(guild, iterable) {
|
||||
super(guild.client, iterable, { name: 'VoiceState' });
|
||||
super(guild.client, VoiceState, iterable);
|
||||
|
||||
/**
|
||||
* The guild this manager belongs to
|
||||
* @type {Guild}
|
||||
|
||||
Reference in New Issue
Block a user