© 2026 Hedgehog Software, LLC
export default class InputSocialMediaAccountName extends CustomModal { public override async build() { this.setCustomId(PresetModal.InputSocialMediaAccountName) .setTitle('Some title') .setComponents([ new ActionRowBuilder<TextInputBuilder>() // .setComponents([ new TextInputBuilder() .setCustomId('handle') .setLabel('Something') .setMinLength(1) .setPlaceholder('test') .setRequired(true) .setStyle(TextInputStyle.Short) ]) ]); } }
CustomModal
export default abstract class CustomModal extends ModalBuilder { constructor(public readonly manager: ModalsManager) { super(); } public abstract build(): Promise<void>; }
Join the Discord to ask follow-up questions and connect with the community
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,666 Members