Class DiscordContainerComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents a container component.
public sealed class DiscordContainerComponent : DiscordComponent
- Inheritance
-
DiscordContainerComponent
- Inherited Members
Constructors
- DiscordContainerComponent(DiscordContainerComponent)
Constructs a new container component based on another container component.
- DiscordContainerComponent(IEnumerable<DiscordComponent>, bool?, DiscordColor?)
Constructs a new container component field with the specified options.
- DiscordContainerComponent(bool?, DiscordColor?)
Constructs a new container component field with the specified options.
Properties
- AccentColor
The accent color for the container.
- Components
The components for the container.
- Spoiler
Gets whether this container should be marked as spoiler.
Methods
- AddComponent(DiscordComponent)
Adds a component to the container.
- AddComponents(IEnumerable<DiscordComponent>)
Adds multiple components to the container.
- WithId(uint)
Assigns a unique id to the components.