catto.js 0.5.3 → 0.5.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.
Files changed (2) hide show
  1. package/Bot.js +2 -1
  2. package/package.json +1 -1
package/Bot.js CHANGED
@@ -23,6 +23,7 @@ module.exports = class extends EventEmitter {
23
23
  } else {
24
24
  this.client = new Discord.Client({
25
25
  "intents": new Discord.IntentsBitField(this.options.intents),
26
+ "partials": [Discord.Partials.Channel, Discord.Partials.GuildMember, Discord.Partials.GuildScheduledEvent, Discord.Partials.Message, Discord.Partials.Reaction, Discord.Partials.ThreadMember, Discord.Partials.User],
26
27
  "rest": {
27
28
  "version": this.options.apiv
28
29
  },
@@ -55,7 +56,7 @@ module.exports = class extends EventEmitter {
55
56
  option.setMinLength(opt.min);
56
57
  }
57
58
  if (opt.max) {
58
- option.setMinLength(opt.max);
59
+ option.setMaxLength(opt.max);
59
60
  }
60
61
  if (opt.choices) {
61
62
  option.setChoices(...opt.choices);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {