Skip to content

Commit

Permalink
Merge branch 'release/v8.1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Sep 4, 2019
2 parents 083f717 + 58903c6 commit 792b448
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-invite-manager",
"version": "8.1.6",
"version": "8.1.7",
"description": "",
"main": "./bin/bot.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/modules/invites/services/Tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export class TrackingService {
}

private async onClientReady() {
if (this.client.hasStarted) {
return;
}

// Save all guilds, sort descending by member count
// (Guilds with more members are more likely to get a join)
const allGuilds = [...this.client.guilds.values()].sort(
Expand Down
4 changes: 4 additions & 0 deletions src/modules/music/services/MusicService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export class MusicService {
}

private async onClientReady() {
if (this.client.hasStarted) {
return;
}

await this.loadMusicNodes();
}

Expand Down

0 comments on commit 792b448

Please sign in to comment.