Table of Contents

Method AddTextComponents

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

AddTextComponents(params DiscordTextComponent[])

Appends a collection of text components to the builder. Each call will append to a new row.

public DiscordInteractionModalBuilder AddTextComponents(params DiscordTextComponent[] components)

Parameters

components DiscordTextComponent[]

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.