Method AddTextDisplayComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddTextDisplayComponent(DiscordTextDisplayComponent)
Adds a text display to this builder.
public T AddTextDisplayComponent(DiscordTextDisplayComponent component)
Parameters
component
DiscordTextDisplayComponent
Returns
- T
The builder to chain calls with.
Exceptions
- InvalidOperationException
Thrown if there is insufficient slots to support the component.
AddTextDisplayComponent(string)
Adds a text display to this builder.
public T AddTextDisplayComponent(string content)
Parameters
content
string
Returns
- T
The builder to chain calls with.
Exceptions
- InvalidOperationException
Thrown if there is insufficient slots to support the component.