Table of Contents

Method AddActionRowComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddActionRowComponent(DiscordActionRowComponent)

public T AddActionRowComponent(DiscordActionRowComponent component)

Parameters

component DiscordActionRowComponent

Returns

T

AddActionRowComponent(DiscordSelectComponent)

Adds a new action row with the given component.

public T AddActionRowComponent(DiscordSelectComponent selectMenu)

Parameters

selectMenu DiscordSelectComponent

The select menu to add, if possible.

Returns

T

The builder to chain calls with.

Exceptions

InvalidOperationException

Thrown if there is insufficient slots to support the component.

AddActionRowComponent(params IEnumerable<DiscordButtonComponent>)

Adds buttons to the builder.

public T AddActionRowComponent(params IEnumerable<DiscordButtonComponent> buttons)

Parameters

buttons IEnumerable<DiscordButtonComponent>

The buttons to add to the message. They will automatically be chunked into separate action rows as necessary.

Returns

T

The builder to chain calls with.

Exceptions

InvalidOperationException

Thrown if there is insufficient slots to support the component.