Skip to content

Commit

Permalink
fix(moderation): Fix punishments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Dec 10, 2019
1 parent 1f9ed25 commit feb0f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moderation/services/Moderation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export class ModerationService {
const strikesAfter = strikesBefore + amount;

const punishmentConfigs = await this.client.cache.punishments.get(args.guild.id);
const punishmentConfig = punishmentConfigs.find(c => c.amount > strikesBefore && c.amount < strikesAfter);
const punishmentConfig = punishmentConfigs.find(c => c.amount > strikesBefore && c.amount <= strikesAfter);

if (punishmentConfig) {
const func = this.punishmentFunctions[punishmentConfig.type];
Expand Down

0 comments on commit feb0f22

Please sign in to comment.