Method AddActionRowComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddActionRowComponent(DiscordActionRowComponent)
Adds a raw action row.
IDiscordMessageBuilder AddActionRowComponent(DiscordActionRowComponent component)
Parameters
component
DiscordActionRowComponentThe select menu to add, if possible.
Returns
- IDiscordMessageBuilder
The builder to chain calls with.
Exceptions
- InvalidOperationException
Thrown if there is insufficient slots to support the component.
AddActionRowComponent(DiscordSelectComponent)
Adds a new action row with the given component.
IDiscordMessageBuilder AddActionRowComponent(DiscordSelectComponent selectMenu)
Parameters
selectMenu
DiscordSelectComponentThe select menu to add, if possible.
Returns
- IDiscordMessageBuilder
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.
IDiscordMessageBuilder 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
- IDiscordMessageBuilder
The builder to chain calls with.
Exceptions
- InvalidOperationException
Thrown if there is insufficient slots to support the component.