catto.js 1.3.3 → 1.3.5

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.
package/Bot.js CHANGED
@@ -50,6 +50,7 @@ module.exports = class extends EventEmitter {
50
50
  this.client = new Discord.Client(opts);
51
51
  if (this.options.sharded) {
52
52
  this.client.cluster = new ClusterClient(this.client);
53
+ this.client.removeAllListeners("ready");
53
54
  }
54
55
  }
55
56
  this.currentStatus = void 0;
@@ -62,6 +63,9 @@ module.exports = class extends EventEmitter {
62
63
  this.client.on("debug", console.log);
63
64
  }
64
65
  this.client.on("clientReady", async () => {
66
+ if (this.options.sharded) {
67
+ this.client.cluster.triggerReady();
68
+ }
65
69
  var gcmds = [];
66
70
  var scmds = [];
67
71
  for (var cmd of this.slashCommands.values()) {
@@ -66,7 +66,8 @@ module.exports = class {
66
66
  } : void 0,
67
67
  "reply_markup": data.replyMarkup ? data.replyMarkup : {
68
68
  "remove_keyboard": !0
69
- }
69
+ },
70
+ "parse_mode": data.parseMode
70
71
  }, data.extra));
71
72
  }
72
73
  if (this.typingLoop !== null) {
@@ -104,3 +105,4 @@ module.exports = class {
104
105
 
105
106
 
106
107
 
108
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,7 +40,7 @@
40
40
  "homepage": "https://github.com/BoryaGames/catto.js#readme",
41
41
  "dependencies": {
42
42
  "body-parser": "^1.20.2",
43
- "discord-hybrid-sharding": "^2.2.0",
43
+ "discord-hybrid-sharding": "^2.2.6",
44
44
  "discord.js": "^14.22.1",
45
45
  "ejs": "^3.1.10",
46
46
  "express": "^4.19.2",