mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
docs(TextInputBuilder): correct constructor documentation (#10308)
feat(builders): fix text input docs Fixes incorrect references to select menu options in text input docs. Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -26,16 +26,16 @@ export class TextInputBuilder
|
|||||||
*
|
*
|
||||||
* @param data - The API data to create this text input with
|
* @param data - The API data to create this text input with
|
||||||
* @example
|
* @example
|
||||||
* Creating a select menu option from an API data object:
|
* Creating a text input from an API data object:
|
||||||
* ```ts
|
* ```ts
|
||||||
* const textInput = new TextInputBuilder({
|
* const textInput = new TextInputBuilder({
|
||||||
* custom_id: 'a cool select menu',
|
* custom_id: 'a cool text input',
|
||||||
* label: 'Type something',
|
* label: 'Type something',
|
||||||
* style: TextInputStyle.Short,
|
* style: TextInputStyle.Short,
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
* @example
|
* @example
|
||||||
* Creating a select menu option using setters and API data:
|
* Creating a text input using setters and API data:
|
||||||
* ```ts
|
* ```ts
|
||||||
* const textInput = new TextInputBuilder({
|
* const textInput = new TextInputBuilder({
|
||||||
* label: 'Type something else',
|
* label: 'Type something else',
|
||||||
|
|||||||
Reference in New Issue
Block a user