little fix

This commit is contained in:
Neko Life 2021-05-14 01:21:53 +00:00
parent 0e9723f0a3
commit f2ad6fc2d7
2 changed files with 4 additions and 1 deletions

View file

@ -85,6 +85,9 @@ module.exports = class mute extends commando.Command {
}
}
}
if (duration.year > 275500) {
duration.year = 275500;
}
let untilDate = new Date(String(duration.year), String(duration.month), String(duration.date), String(duration.hour), String(duration.minute), String(duration.second));
if (untilDate.toUTCString() === invokedAt.toUTCString()) {
untilDate = "Indefinite";

View file

@ -76,7 +76,7 @@ module.exports = class avatar extends commando.Command {
} else {
dupliCheck.push(ree[0].id);
user = ree[0];
multipleMemMes.push(multipleMembersFound(this.client, msg, ree, uID, show));
multipleMemMes.push(multipleMembersFound(this.client, msg, ree.slice(1), uID, show));
}
} else {
user = undefined;