vimcord 1.0.30 → 1.0.32

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/dist/index.cjs CHANGED
@@ -2376,7 +2376,7 @@ var EventManager = class {
2376
2376
  };
2377
2377
 
2378
2378
  // package.json
2379
- var version = "1.0.30";
2379
+ var version = "1.0.31";
2380
2380
 
2381
2381
  // src/client.ts
2382
2382
  var import_node_crypto3 = require("crypto");
@@ -2688,9 +2688,7 @@ var Vimcord = class _Vimcord extends import_discord11.Client {
2688
2688
  this.on("error", (err) => this.logger.error("Client Error", err));
2689
2689
  this.on("shardError", (err) => this.logger.error("Client Shard Error", err));
2690
2690
  }
2691
- if (!this.config.app.disableBanner === false) {
2692
- this.logger.clientBanner(this);
2693
- }
2691
+ this.logger.clientBanner(this);
2694
2692
  this.once("clientReady", (client) => {
2695
2693
  this.logger.clientReady(client.user.tag, client.guilds.cache.size);
2696
2694
  });
@@ -3630,8 +3628,12 @@ var BetterModal = class {
3630
3628
  values.push(value);
3631
3629
  }
3632
3630
  return {
3633
- getField(customId) {
3634
- return fields.get(customId);
3631
+ getField(customId, required) {
3632
+ const value = fields.get(customId);
3633
+ if (required && value === void 0) {
3634
+ throw new Error(`ModalSubmitResult: Field ${customId} is required but was not found`);
3635
+ }
3636
+ return value;
3635
3637
  },
3636
3638
  values,
3637
3639
  interaction: modalSubmit,