@jnode/discord 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnode/discord",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Simple Discord API package for Node.js.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/client.js CHANGED
@@ -112,7 +112,7 @@ class DiscordClient {
112
112
  async connectGateway(cb) {
113
113
  await this.gateway.getGatewayUrl();
114
114
  this.gateway.connect();
115
- cb(this.gateway);
115
+ if (cb) cb(this.gateway);
116
116
  return this.gateway;
117
117
  }
118
118
  }