mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
Fix channels.resolve (#2137)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
134ef7a61b
commit
3e3674b1af
@@ -10,7 +10,7 @@ class DataStore extends Collection {
|
|||||||
super();
|
super();
|
||||||
if (!Structures) Structures = require('../util/Structures');
|
if (!Structures) Structures = require('../util/Structures');
|
||||||
Object.defineProperty(this, 'client', { value: client });
|
Object.defineProperty(this, 'client', { value: client });
|
||||||
Object.defineProperty(this, 'holds', { value: Structures.get(holds.name) });
|
Object.defineProperty(this, 'holds', { value: Structures.get(holds.name) || holds });
|
||||||
if (iterable) for (const item of iterable) this.create(item);
|
if (iterable) for (const item of iterable) this.create(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user