Table of Contents
API reference

Method AddComponents

Namespace
DisCatSharp.Interactivity.Entities
Assembly
DisCatSharp.Interactivity.dll

AddComponents(params DiscordComponent[])

Adds v2 components to the message. This enables the use of up to 40 components per message.

warning

This does not support old component behavior. Only V2.

public Page AddComponents(params DiscordComponent[] components)

Parameters

components DiscordComponent[]

The components to add to the page.

Returns

Page

The current page to be chained.

AddComponents(IEnumerable<DiscordComponent>)

Adds v2 components to the message. This enables the use of up to 40 components per message.

warning

This does not support old component behavior. Only V2.

public Page AddComponents(IEnumerable<DiscordComponent> components)

Parameters

components IEnumerable<DiscordComponent>

The components to add to the page.

Returns

Page

The current page to be chained.

Exceptions

ArgumentOutOfRangeException

No components were passed.