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
otherDiscordContainerComponentThe 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
componentsIEnumerable<DiscordComponent>The container components. Max of
39.spoilerbool?Whether the container should be marked as spoiler.
accentColorDiscordColor?The accent color for the container.
DiscordContainerComponent(bool?, DiscordColor?)
Constructs a new container component field with the specified options.
public DiscordContainerComponent(bool? spoiler = null, DiscordColor? accentColor = null)
Parameters
spoilerbool?Whether the container should be marked as spoiler.
accentColorDiscordColor?The accent color for the container.