diff --git a/src/client/components/Resolver.ts b/src/client/components/Resolver.ts index e36c403..0dbb3f8 100644 --- a/src/client/components/Resolver.ts +++ b/src/client/components/Resolver.ts @@ -149,14 +149,14 @@ class Resolver if (typeof resolveable === 'string' && (/<@!?([0-9]{17,21})>/u).test(resolveable)) { const [ , id ] = resolveable.toString().match(/<@!?([0-9]{17,21})>/u) || []; - const user = await users.fetch(id).catch(null); + const user = await users.fetch(id).catch(() => null); if (user) resolved.push(user); } else if (typeof resolveable === 'string' && (/(id:)?([0-9]{17,21})/u).test(resolveable)) { const [ , , id ] = resolveable.toString().match(/(id:)?([0-9]{17,21})/u) || []; - const user = await users.fetch(id).catch(null); + const user = await users.fetch(id).catch(() => null); if (user) resolved.push(user); } @@ -238,14 +238,14 @@ class Resolver if (typeof resolveable === 'string' && (/<@!?([0-9]{17,21})>/u).test(resolveable)) { const [ , id ] = resolveable.toString().match(/<@!?([0-9]{17,21})>/u) || []; - const member = await members.fetch(id).catch(null); + const member = await members.fetch(id).catch(() => null); if (member) resolved.push(member); } else if (typeof resolveable === 'string' && (/(id:)?([0-9]{17,21})/u).test(resolveable)) { const [ , , id ] = resolveable.toString().match(/(id:)?([0-9]{17,21})/u) || []; - const member = await members.fetch(id).catch(null); + const member = await members.fetch(id).catch(() => null); if (member) resolved.push(member); }