It's minimist (again)

This commit is contained in:
Dragon Fire
2024-04-29 02:22:27 -04:00
parent 9eb1202641
commit 57897377c8
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -9,12 +9,10 @@ module.exports = class UserArgumentType extends ArgumentType {
const matches = val.match(/^(?:<@!?)?([0-9]+)>?$/);
if (matches) {
try {
console.log(matches);
const user = await msg.client.users.fetch(matches[1]);
if (!user) return false;
return true;
} catch (err) {
console.error(err);
return false;
}
}