Method AddFileComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddFileComponent(DiscordFileComponent)
Adds a file component to this builder.
IDiscordMessageBuilder AddFileComponent(DiscordFileComponent component)
Parameters
component
DiscordFileComponentThe component to add.
Returns
- IDiscordMessageBuilder
The builder to chain calls with.
Exceptions
- InvalidOperationException
Thrown if there is insufficient slots to support the component.