mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
docs: add extends to ChannelManager, cache is not nullable, resolveID accepts an object (#3771)
* Add extends to docs * Cache shouldn't be nullable * jsdoc: use same type for both resolve methods
This commit is contained in:
parent
92bc634520
commit
94bb268639
2 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ class BaseManager {
|
|||
|
||||
/**
|
||||
* Holds the cache for the data model
|
||||
* @type {?Collection}
|
||||
* @type {Collection}
|
||||
*/
|
||||
this.cache = new cacheType(...cacheOptions);
|
||||
if (iterable) for (const i of iterable) this.add(i);
|
||||
|
|
@ -64,7 +64,7 @@ class BaseManager {
|
|||
|
||||
/**
|
||||
* Resolves a data entry to a instance ID.
|
||||
* @param {string|Instance} idOrInstance The id or instance of something in this Manager
|
||||
* @param {string|Object} idOrInstance The id or instance of something in this Manager
|
||||
* @returns {?Snowflake}
|
||||
*/
|
||||
resolveID(idOrInstance) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ const { Events } = require('../util/Constants');
|
|||
|
||||
/**
|
||||
* A manager of channels belonging to a client
|
||||
* @extends {BaseManager}
|
||||
*/
|
||||
class ChannelManager extends BaseManager {
|
||||
constructor(client, iterable) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue