mirror of
https://github.com/danbulant/Shasha
synced 2026-05-27 13:51:53 +00:00
little fix
This commit is contained in:
parent
0e9723f0a3
commit
f2ad6fc2d7
2 changed files with 4 additions and 1 deletions
|
|
@ -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));
|
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()) {
|
if (untilDate.toUTCString() === invokedAt.toUTCString()) {
|
||||||
untilDate = "Indefinite";
|
untilDate = "Indefinite";
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ module.exports = class avatar extends commando.Command {
|
||||||
} else {
|
} else {
|
||||||
dupliCheck.push(ree[0].id);
|
dupliCheck.push(ree[0].id);
|
||||||
user = ree[0];
|
user = ree[0];
|
||||||
multipleMemMes.push(multipleMembersFound(this.client, msg, ree, uID, show));
|
multipleMemMes.push(multipleMembersFound(this.client, msg, ree.slice(1), uID, show));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
user = undefined;
|
user = undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue