diff --git a/structure/client/Resolver.js b/structure/client/Resolver.js index 2d7e805..c9b8afb 100644 --- a/structure/client/Resolver.js +++ b/structure/client/Resolver.js @@ -40,12 +40,12 @@ class Resolver { } - componentsByTag(str, type, exact = true) { + componentsByTag(str, type = 'any', exact = true) { const key = str.toLowerCase(); const components = this.client.registry.components - .filter((c) => c.type === type) + .filter((c) => type === 'any' || c.type === type) .filter(exact ? (c) => c.tags.includes(key) : filterInexactTags(key)) .array();