diff --git a/src/lib/structures/AliasStore.ts b/src/lib/structures/AliasStore.ts index ef5f7079..23cb0ec5 100644 --- a/src/lib/structures/AliasStore.ts +++ b/src/lib/structures/AliasStore.ts @@ -10,13 +10,13 @@ export class AliasStore(); + public readonly aliases = new Collection(); /** * Looks up the name by the store, falling back to an alias lookup. * @param key The key to look for. */ - public override get(key: string): T | undefined { + public override get(key: string | symbol): T | undefined { return super.get(key) ?? this.aliases.get(key); } @@ -24,7 +24,7 @@ export class AliasStore { + public override unload(name: string | symbol | T): Promise { const piece = this.resolve(name); // Unload all aliases for the given piece: