Table of Contents

Constructor DiscordSectionComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordSectionComponent(DiscordComponent, DiscordComponent)

Constructs a new section component.

public DiscordSectionComponent(DiscordComponent textDisplayComponent, DiscordComponent accessory)

Parameters

textDisplayComponent DiscordComponent
accessory DiscordComponent

The accessory to this section. At this time, this must either be a DiscordThumbnailComponent or a DiscordButtonComponent.

DiscordSectionComponent(string, DiscordComponent)

Constructs a new DiscordSectionComponent

public DiscordSectionComponent(string text, DiscordComponent accessory)

Parameters

text string

The text for this section.

accessory DiscordComponent

The accessory for this section.

DiscordSectionComponent(IReadOnlyList<DiscordComponent>, DiscordComponent)

Constructs a new section component.

public DiscordSectionComponent(IReadOnlyList<DiscordComponent> sections, DiscordComponent accessory)

Parameters

sections IReadOnlyList<DiscordComponent>

The sections (generally text) that this section contains.

accessory DiscordComponent

The accessory to this section. At this time, this must either be a DiscordThumbnailComponent or a DiscordButtonComponent.