Table of Contents
API reference

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 a DiscordThumbnailComponent, DiscordButtonComponent, or DiscordOverflowMenuComponent.

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.

WithOverflowMenuComponent(DiscordOverflowMenuComponent)

Adds an overflow menu to the section as its accessory.

WithThumbnailComponent(string, string?, bool?)

Adds a thumbnail component to the section as accessory.