aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/custom
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-03 18:16:11 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-03 18:16:11 -0400
commit3b1311951638bc54efbbb245632e2b3ab460f741 (patch)
tree07fc42ba19a0ec4a2b3168faf96d284f726fb3da /src/listeners/custom
parent4b4d05d9708bdaef2c93df1a83c4ce7ca4350f7a (diff)
downloadtanzanite-3b1311951638bc54efbbb245632e2b3ab460f741.tar.gz
tanzanite-3b1311951638bc54efbbb245632e2b3ab460f741.tar.bz2
tanzanite-3b1311951638bc54efbbb245632e2b3ab460f741.zip
new links, bug fixes, excape rtl charecters in welcome messages
Diffstat (limited to 'src/listeners/custom')
-rw-r--r--src/listeners/custom/bushMute.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listeners/custom/bushMute.ts b/src/listeners/custom/bushMute.ts
index 615d698..d0f9e06 100644
--- a/src/listeners/custom/bushMute.ts
+++ b/src/listeners/custom/bushMute.ts
@@ -27,7 +27,7 @@ export default class BushMuteListener extends BushListener {
.addField('**User**', `${user} (${user.tag})`)
.addField('**Moderator**', `${moderator} (${moderator.tag})`)
.addField('**Reason**', `${reason ?? '[No Reason Provided]'}`);
- if (duration) logEmbed.addField('**Duration**', util.humanizeDuration(duration));
+ if (duration) logEmbed.addField('**Duration**', `${util.humanizeDuration(duration) || duration}`);
if (dmSuccess === false) logEmbed.addField('**Additional Info**', 'Could not dm user.');
return await logChannel.send({ embeds: [logEmbed] });
}