Table of Contents

Class ComponentContainerProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ComponentContainerProperties : IComponentProperties, IEnumerable<IComponentProperties>, IEnumerable
Inheritance
ComponentContainerProperties
Implements
Inherited Members

Constructors

ComponentContainerProperties()

public ComponentContainerProperties()

ComponentContainerProperties(IEnumerable<IComponentProperties>)

public ComponentContainerProperties(IEnumerable<IComponentProperties> components)

Parameters

components IEnumerable<IComponentProperties>

Properties

AccentColor

public Color? AccentColor { get; set; }

Property Value

Color?

ComponentType

Type of the component.

public ComponentType ComponentType { get; }

Property Value

ComponentType

Components

public IEnumerable<IComponentProperties> Components { get; set; }

Property Value

IEnumerable<IComponentProperties>

Id

Unique identifier for the component. Auto populated through increment if not provided.

public int? Id { get; set; }

Property Value

int?

Spoiler

public bool Spoiler { get; set; }

Property Value

bool

Methods

AddComponents(params IComponentProperties[])

public ComponentContainerProperties AddComponents(params IComponentProperties[] components)

Parameters

components IComponentProperties[]

Returns

ComponentContainerProperties

AddComponents(IEnumerable<IComponentProperties>)

public ComponentContainerProperties AddComponents(IEnumerable<IComponentProperties> components)

Parameters

components IEnumerable<IComponentProperties>

Returns

ComponentContainerProperties

WithAccentColor(Color?)

public ComponentContainerProperties WithAccentColor(Color? accentColor)

Parameters

accentColor Color?

Returns

ComponentContainerProperties

WithComponents(IEnumerable<IComponentProperties>)

public ComponentContainerProperties WithComponents(IEnumerable<IComponentProperties> components)

Parameters

components IEnumerable<IComponentProperties>

Returns

ComponentContainerProperties

WithId(int?)

public ComponentContainerProperties WithId(int? id)

Parameters

id int?

Returns

ComponentContainerProperties

WithSpoiler(bool)

public ComponentContainerProperties WithSpoiler(bool spoiler = true)

Parameters

spoiler bool

Returns

ComponentContainerProperties