Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RozmarinUS committed May 28, 2024
1 parent 6ec504e commit c0f579e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stat-reporter/nestcord-stat-reporter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class NestCordStatReporterService implements OnModuleInit {

onModuleInit() {
this.client.on('ready', () => {
const isFirstShard = this.client.shard?.ids?.[0] === 0;
const isFirstShard = this.client.shard && this.client.shard.ids?.[0] === 0;
const isProduction = !this.options.development;

if (isFirstShard && isProduction) {
Expand Down

0 comments on commit c0f579e

Please sign in to comment.