mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Reimplement Structures.get
This commit is contained in:
@@ -9,7 +9,7 @@ class DataStore extends Collection {
|
||||
constructor(client, iterable, holds) {
|
||||
super();
|
||||
Object.defineProperty(this, 'client', { value: client });
|
||||
Object.defineProperty(this, 'holds', { value: Structures.get(holds.name) });
|
||||
Object.defineProperty(this, 'holds', { value: Structures.get(holds) });
|
||||
if (iterable) for (const item of iterable) this.create(item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user