mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
test
This commit is contained in:
@@ -9,6 +9,7 @@ module.exports = class UserArgumentType extends ArgumentType {
|
|||||||
const matches = val.match(/^(?:<@!?)?([0-9]+)>?$/);
|
const matches = val.match(/^(?:<@!?)?([0-9]+)>?$/);
|
||||||
if (matches) {
|
if (matches) {
|
||||||
try {
|
try {
|
||||||
|
console.log(matches);
|
||||||
const user = await msg.client.users.fetch(matches[1]);
|
const user = await msg.client.users.fetch(matches[1]);
|
||||||
if (!user) return false;
|
if (!user) return false;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user