diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-07 16:12:28 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-07 16:12:28 -0500 |
commit | b4d6c2c94d1fb3f6646503834d5cecd9d68d113a (patch) | |
tree | 5ab012e61b1c497729b8e9a5beb54fb06e5cd1c8 /src/lib/common | |
parent | db68c02e9d84322f729c17afd9d293d449238ca4 (diff) | |
download | tanzanite-b4d6c2c94d1fb3f6646503834d5cecd9d68d113a.tar.gz tanzanite-b4d6c2c94d1fb3f6646503834d5cecd9d68d113a.tar.bz2 tanzanite-b4d6c2c94d1fb3f6646503834d5cecd9d68d113a.zip |
sync punishments
Diffstat (limited to 'src/lib/common')
-rw-r--r-- | src/lib/common/util/Moderation.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/common/util/Moderation.ts b/src/lib/common/util/Moderation.ts index c018852..e5cb872 100644 --- a/src/lib/common/util/Moderation.ts +++ b/src/lib/common/util/Moderation.ts @@ -93,8 +93,7 @@ export class Moderation { const user = (await util.resolveNonCachedUser(options.user))!.id; const moderator = (await util.resolveNonCachedUser(options.moderator))!.id; const guild = client.guilds.resolveId(options.guild)!; - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing - const duration = options.duration || undefined; + const duration = options.duration ? options.duration : undefined; // If guild does not exist create it so the modlog can reference a guild. await Guild.findOrCreate({ |