Skip to content

Commit

Permalink
fix: notifying owner on bot-join
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiah committed May 1, 2020
1 parent 3ed3023 commit f6ae100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eventHandlers/NotifyOwnerJoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class NotifyOwnerJoin extends Handler {
if (!guild.available) {
return;
}
const bots = guild.members.filter(member => member.user.bot);
const bots = guild.members.cache.filter(member => member.user.bot);
const isOverLimit = ((bots.size / guild.memberCount) * 100) >= 80;

try {
Expand Down

0 comments on commit f6ae100

Please sign in to comment.