Table of Contents

Method AddComponents

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

AddComponents(IEnumerable<DiscordComponent>)

Adds multiple components to the container.

public DiscordContainerComponent AddComponents(IEnumerable<DiscordComponent> components)

Parameters

components IEnumerable<DiscordComponent>

The components to add.

Returns

DiscordContainerComponent

The updated container component.

Exceptions

ArgumentException

Thrown if the number of components exceeds 10 or if any of the components are not of the allowed types.