Skip to content

Commit

Permalink
🐛 Fix member kick on warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Jan 10, 2021
1 parent 3740722 commit 26e4b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/Moderation/warn.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Warn extends Command {
count: data.guild.casesCount
}))
.setColor("#e88709");
message.guild.members.kick(member).catch(() => {});
member.kick().catch(() => {});
message.success("moderation/setwarns:AUTO_KICK", {
username: member.tag,
count: banCount
Expand Down

0 comments on commit 26e4b66

Please sign in to comment.