This commit is contained in:
Dragon Fire
2024-04-29 02:16:03 -04:00
parent a4d1855e4e
commit 9eb1202641
+1
View File
@@ -9,6 +9,7 @@ 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;