Method AddTextComponents
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
AddTextComponents(params DiscordTextInputComponent[])
Appends a collection of text components to the builder. Each call will append to a new row.
[DiscordDeprecated("Use AddLabelComponents")]
public DiscordInteractionModalBuilder AddTextComponents(params DiscordTextInputComponent[] components)
Parameters
componentsDiscordTextInputComponent[]The components to append. Up to five.
Returns
- DiscordInteractionModalBuilder
The current builder to chain calls with.
Exceptions
- ArgumentException
Thrown when passing more than 5 components.