Skip to content

Commit

Permalink
Ban user instead of member
Browse files Browse the repository at this point in the history
  • Loading branch information
fakuzatsu authored Jan 18, 2025
1 parent f080ad7 commit 7d508c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interactions/slash/moderation/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module.exports = {
}

try {
await member.ban({
await user.ban({
deleteMessageSeconds: deleteSeconds,
reason: banReason,
});
Expand All @@ -137,7 +137,7 @@ module.exports = {
content: `> ${user.username} just got banned. For reason: ${banReason}`,
});
} catch (error) {
console.error(`Failed to ban member:`, error);
console.error(`Failed to ban user:`, error);
interaction.editReply({
content: `An issue occured banning that user. Consult the logs for more info.`,
});
Expand Down

0 comments on commit 7d508c5

Please sign in to comment.