Table of Contents

Class DiscordSectionComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a section component.

public sealed class DiscordSectionComponent : DiscordComponent
Inheritance
DiscordSectionComponent
Inherited Members

Constructors

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 at the moment, but might include buttons later.

Components

The components for the section.

Methods

WithButtonComponent(DiscordBaseButtonComponent)

Adds a button component to the section as accessory.

WithThumbnailComponent(string, string?, bool?)

Adds a thumbnail component to the section as accessory.