mirror of
https://github.com/danbulant/Shasha
synced 2026-07-05 11:00:58 +00:00
hm
This commit is contained in:
parent
e5e24ccf66
commit
3c11d2b38c
1 changed files with 7 additions and 5 deletions
|
|
@ -145,11 +145,13 @@ module.exports = class mute extends commando.Command {
|
||||||
if (already.length > 0) emb.addField("Already muted", "<@" + already.join(">, <@") + ">\n\nDuration updated for these users");
|
if (already.length > 0) emb.addField("Already muted", "<@" + already.join(">, <@") + ">\n\nDuration updated for these users");
|
||||||
|
|
||||||
emb.setTitle("Infraction #" + infractionToDoc.infraction)
|
emb.setTitle("Infraction #" + infractionToDoc.infraction)
|
||||||
.setDescription("**Reason**\n" + reason)
|
.setDescription("**Reason**\n" + reason);
|
||||||
.addField("Muted", mutedStr || "`[NONE]`")
|
if (muted.length > 0) {
|
||||||
.addField("At", defaultDateFormat(duration.invoked), true)
|
emb.addField("Muted", mutedStr || "`[NONE]`")
|
||||||
.addField("Until", duration.until ? defaultDateFormat(duration.until) : "Never", true)
|
.addField("At", defaultDateFormat(duration.invoked), true)
|
||||||
.addField("For", duration.duration?.strings.join(" ") || "Indefinite");
|
.addField("Until", duration.until ? defaultDateFormat(duration.until) : "Never", true)
|
||||||
|
}
|
||||||
|
emb.addField("For", duration.duration?.strings.join(" ") || "Indefinite");
|
||||||
|
|
||||||
if (cant.length > 0) emb.addField("Can't mute", "<@" + cant.join(">, <@") + ">\n\n**You can't mute someone with higher position than you <:nekokekLife:852865942530949160>**");
|
if (cant.length > 0) emb.addField("Can't mute", "<@" + cant.join(">, <@") + ">\n\n**You can't mute someone with higher position than you <:nekokekLife:852865942530949160>**");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue