search members by ID :D

This commit is contained in:
Emily 2021-03-07 00:16:47 +11:00
parent 9e556e4666
commit eec9fca10f

View file

@ -129,12 +129,21 @@ class Functions {
if (guild) {
this.client.guilds.set(id, guild);
return guild;
return guild;
}
return;
}
async validateUserID (guild, ID) {
const valid = /[0-9]{18}/.test(ID);
if (valid === true) {
const member = await this.getMember(guild, ID);
if (member) return member;
}
}
async clean (text) {
if (text && text.constructor.name === 'Promise') {
text = await text;