Creates a new text input
The name of the text input
The data of the text input (builder or raw)
module.exports.default = new TextInput('username', {
customId: 'username',
label: 'Username',
placeholder: 'Enter your username...',
style: TextInputStyle.Short,
maxLength: 32,
required: true
});
module.exports.default = new TextInput(
'username',
new TextInputBuilder()
.setCustomId('username')
.setLabel('Username')
.setPlaceholder('Enter your username...')
.setStyle(TextInputStyle.Short)
.setMaxLength(32)
.setRequired(true)
);
The data of the text input (builder or raw)
The name of the text input
Generated using TypeDoc
Represents a text input component