Table of Contents

Method AddFileComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddFileComponent(DiscordFileComponent)

Adds a file component to this builder.

public T AddFileComponent(DiscordFileComponent component)

Parameters

component DiscordFileComponent

The component to add.

Returns

T

The builder to chain calls with.

Exceptions

InvalidOperationException

Thrown if there is insufficient slots to support the component.