diff --git a/src/lib/resolvers/member.ts b/src/lib/resolvers/member.ts index b95cfe837..28138e42b 100644 --- a/src/lib/resolvers/member.ts +++ b/src/lib/resolvers/member.ts @@ -15,6 +15,8 @@ async function resolveById(argument: string, guild: Guild): Promise { + argument = argument.length > 5 && argument.at(-5) === '#' ? argument.slice(0, -5) : argument; + const members = await guild.members.fetch({ query: argument, limit: 1 }).catch(() => null); return members?.first() ?? null; }