Table of Contents

Method AddTextDisplayComponents

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

AddTextDisplayComponents(IEnumerable<DiscordTextDisplayComponent>)

Adds multiple text display components to the section.

public DiscordSectionComponent AddTextDisplayComponents(IEnumerable<DiscordTextDisplayComponent> components)

Parameters

components IEnumerable<DiscordTextDisplayComponent>

The components to add.

Returns

DiscordSectionComponent

Exceptions

ArgumentException

Thrown if the number of components exceeds 3.