diff --git a/bot/util/functions.js b/bot/util/functions.js index d7ff388..7b4d587 100644 --- a/bot/util/functions.js +++ b/bot/util/functions.js @@ -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;