@jnode/discord 1.0.5 → 1.0.6

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 +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnode/discord",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Simple Discord API package for Node.js.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/client.js CHANGED
@@ -108,9 +108,10 @@ class DiscordClient {
108
108
  return res;
109
109
  }
110
110
 
111
- async connectGateway() {
111
+ async connectGateway(cb) {
112
112
  await this.gateway.getGatewayUrl();
113
113
  this.gateway.connect();
114
+ cb(this.gateway);
114
115
  return this.gateway;
115
116
  }
116
117
  }