Constructor DiscordSectionComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DiscordSectionComponent(DiscordComponent, DiscordComponent)
Constructs a new section component.
public DiscordSectionComponent(DiscordComponent textDisplayComponent, DiscordComponent accessory)
Parameters
textDisplayComponent
DiscordComponentaccessory
DiscordComponentThe 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
stringThe text for this section.
accessory
DiscordComponentThe 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
DiscordComponentThe accessory to this section. At this time, this must either be a DiscordThumbnailComponent or a DiscordButtonComponent.