search members by ID :D
This commit is contained in:
parent
9e556e4666
commit
eec9fca10f
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue