Class DiscordSectionComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents a section component.
public sealed class DiscordSectionComponent : DiscordComponent
- Inheritance
-
DiscordSectionComponent
- Inherited Members
Constructors
- DiscordSectionComponent()
Constructs a new DiscordSectionComponent.
- DiscordSectionComponent(DiscordSectionComponent)
Constructs a new section component based on another section component.
- DiscordSectionComponent(IEnumerable<DiscordTextDisplayComponent>)
Constructs a new section component field with the specified options.
Properties
- Accessory
The accessory for the section. Can be DiscordThumbnailComponent or DiscordButtonComponent at the moment.
- Components
The components for the section.
Methods
- AddTextDisplayComponent(DiscordTextDisplayComponent)
Adds a text display components to the section.
- AddTextDisplayComponents(IEnumerable<DiscordTextDisplayComponent>)
Adds multiple text display components to the section.
- GetChildren()
Gets the child components of this component, if any.
- WithButtonComponent(DiscordBaseButtonComponent)
Adds a button component to the section as accessory.
- WithId(int)
Assigns a unique id to this component.
- WithThumbnailComponent(string, string?, bool?)
Adds a thumbnail component to the section as accessory.