Method AddModalComponents
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
AddModalComponents(params DiscordComponent[])
Appends a collection of components to the builder.
public DiscordInteractionModalBuilder AddModalComponents(params DiscordComponent[] components)
Parameters
components
DiscordComponent[]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.
AddModalComponents(IEnumerable<DiscordActionRowComponent>)
Appends several rows of components to the message
public DiscordInteractionModalBuilder AddModalComponents(IEnumerable<DiscordActionRowComponent> components)
Parameters
components
IEnumerable<DiscordActionRowComponent>The rows of components to add, holding up to five each.
Returns
- DiscordInteractionModalBuilder
The current builder to chain calls with.
Exceptions
- ArgumentException
Thrown when passing more than 5 components.