Skip to content

Commit

Permalink
fix(premium): Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Dec 3, 2019
1 parent a4e9427 commit c60d4bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,14 @@ export class IMClient extends Client {
)
.catch(() => undefined);
const onTimeout = async () => {
// Check one last time before leaving
if (await this.cache.premium._get(guild.id)) {
return;
}

await guild.leave();
};
setTimeout(onTimeout, 2 * 60 * 1000);
setTimeout(onTimeout, 3 * 60 * 1000);
}
}
break;
Expand Down

0 comments on commit c60d4bb

Please sign in to comment.