fixed avatar bug

This commit is contained in:
Neko Life 2021-05-10 13:40:53 +00:00
parent 01abcc8295
commit bd59af61b0

View file

@ -51,11 +51,8 @@ module.exports = class avatar extends commando.Command {
if (arg) { if (arg) {
for(const theAvThis of args) { for(const theAvThis of args) {
let avThis = theAvThis.replace(/\-\-show *\d*/i, ""); let avThis = theAvThis.replace(/\-\-show *\d*/i, "");
if (avThis.length === 1) {
return trySend(this.client, msg, "One character for searching member isn't allowed <:catstareLife:794930503076675584>");
}
let uID = cleanMentionID(avThis.trim()); let uID = cleanMentionID(avThis.trim());
if (uID.length > 1) { if (uID.length > 0) {
let ree = []; let ree = [];
async function nonDigit(client) { async function nonDigit(client) {
const theree = findMemberRegEx(msg, uID); const theree = findMemberRegEx(msg, uID);