mirror of
https://github.com/danbulant/Shasha
synced 2026-06-07 08:32:16 +00:00
fixed avatar bug
This commit is contained in:
parent
01abcc8295
commit
bd59af61b0
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue