aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/ban.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moderation/ban.ts')
-rw-r--r--src/commands/moderation/ban.ts4
1 files changed, 2 insertions, 2 deletions
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
});