From 35d03eb54fe81c1d5c0359db67455b82f754e3f4 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 7 Sep 2021 20:15:45 -0400 Subject: add owner bypasses and prevent blacklisted users from having their dms logged --- src/commands/moderation/ban.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/moderation/ban.ts') diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/ban.ts index 812d7ca..fea5543 100644 --- a/src/commands/moderation/ban.ts +++ b/src/commands/moderation/ban.ts @@ -122,14 +122,14 @@ export default class BanCommand extends BushCommand { const responseCode = member ? await member.bushBan({ reason: parsedReason, - moderator: message.author, + moderator: message.member, duration: time! ?? 0, deleteDays: days ?? 0 }) : await message.guild.bushBan({ user, reason: parsedReason, - moderator: message.author, + moderator: message.member, duration: time! ?? 0, deleteDays: days ?? 0 }); -- cgit