mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user