Table of Contents

Constructor DiscordContainerComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DiscordContainerComponent(DiscordContainerComponent)

Constructs a new container component based on another container component.

public DiscordContainerComponent(DiscordContainerComponent other)

Parameters

other DiscordContainerComponent

The container component to copy.

DiscordContainerComponent(IEnumerable<DiscordComponent>, bool?, DiscordColor?)

Constructs a new container component field with the specified options.

public DiscordContainerComponent(IEnumerable<DiscordComponent> components, bool? spoiler = null, DiscordColor? accentColor = null)

Parameters

components IEnumerable<DiscordComponent>

The container components. Max of 10.

spoiler bool?

Whether the container should be marked as spoiler.

accentColor DiscordColor?

The accent color for the container.