Skip to content

Commit

Permalink
Merge pull request #203 from zhiyan114/dev
Browse files Browse the repository at this point in the history
Fix class binding for callback stuff
  • Loading branch information
zhiyan114 authored Nov 7, 2024
2 parents 061afb0 + 2829b36 commit 0bfb27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/unverifyKick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export class unverifyKickLoader {
await this.checkAndKick();

// Set grace period callback func
this.client.on('guildMemberAdd', this.setGracePeriod);
this.client.on('guildMemberAdd', this.setGracePeriod.bind(this));

// Set cronjob to check every hour
schedule("0 * * * *", this.checkAndKick);
schedule("0 * * * *", this.checkAndKick.bind(this));

}

Expand Down

0 comments on commit 0bfb27f

Please sign in to comment.