Method WithButtonComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
WithButtonComponent(DiscordBaseButtonComponent)
Adds a button component to the section as accessory.
public DiscordSectionComponent WithButtonComponent(DiscordBaseButtonComponent button)
Parameters
button
DiscordBaseButtonComponentThe button to add.
Returns
- DiscordSectionComponent
The current DiscordSectionComponent.