vimcord 1.0.53 → 1.0.54

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.js CHANGED
@@ -1693,7 +1693,7 @@ var VimcordErrorHandler = class {
1693
1693
  import chalk2 from "chalk";
1694
1694
 
1695
1695
  // package.json
1696
- var version = "1.0.53";
1696
+ var version = "1.0.54";
1697
1697
 
1698
1698
  // src/client/vimcord.logger.ts
1699
1699
  var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({
@@ -3482,6 +3482,7 @@ import {
3482
3482
  RoleSelectMenuBuilder,
3483
3483
  StringSelectMenuBuilder,
3484
3484
  TextInputBuilder,
3485
+ TextInputStyle,
3485
3486
  UserSelectMenuBuilder
3486
3487
  } from "discord.js";
3487
3488
  var DEFAULT_CONFIG = {
@@ -3574,7 +3575,8 @@ var BetterModal = class _BetterModal {
3574
3575
  addTextInput(data) {
3575
3576
  this.validateComponentLength();
3576
3577
  const customId = data.customId ?? this.createComponentId();
3577
- const textInput = new TextInputBuilder({ ...data, customId });
3578
+ const { label: _, ...textInputData } = data;
3579
+ const textInput = new TextInputBuilder({ style: TextInputStyle.Short, required: false, ...textInputData, customId });
3578
3580
  const label = this.createLabelComponent(data);
3579
3581
  label.setTextInputComponent(textInput);
3580
3582
  this.components.set(customId, { textInput: data });