@globalart/nestcord 1.7.8 → 1.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,10 +48,7 @@ let NestCordStatReporterService = NestCordStatReporterService_1 = class NestCord
48
48
  });
49
49
  }
50
50
  isFirstShard() {
51
- if (!this.shard || !Array.isArray(this.shard.ids)) {
52
- return false;
53
- }
54
- return this.shard.ids[0] === 0;
51
+ return !this.shard || (Array.isArray(this.shard.ids) && this.shard.ids[0] === 0);
55
52
  }
56
53
  isProduction() {
57
54
  return !this.options.development;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@globalart/nestcord",
3
3
  "description": "A module for creating Discord bots using NestJS, based on Discord.js",
4
- "version": "1.7.8",
4
+ "version": "1.7.9",
5
5
  "private": false,
6
6
  "scripts": {
7
7
  "build": "rimraf dist && tsc -p tsconfig.build.json",