Table of Contents
API reference

Method SendPaginatedResponseAsync

Namespace
DisCatSharp.Interactivity
Assembly
DisCatSharp.Interactivity.dll

SendPaginatedResponseAsync(DiscordInteraction, bool, bool, DiscordUser, IEnumerable<Page>, PaginationButtons?, PaginationBehaviour?, ButtonPaginationBehavior?, CancellationToken)

Sends a paginated message in response to an interaction.

Pass the interaction directly. Interactivity will ACK it.

public Task SendPaginatedResponseAsync(DiscordInteraction interaction, bool deferred, bool ephemeral, DiscordUser user, IEnumerable<Page> pages, PaginationButtons? buttons = null, PaginationBehaviour? behaviour = null, ButtonPaginationBehavior? deletion = null, CancellationToken token = default)

Parameters

interaction DiscordInteraction

The interaction to create a response to.

deferred bool

Whether the interaction was deferred.

ephemeral bool

Whether the response should be ephemeral.

user DiscordUser

The user to listen for button presses from.

pages IEnumerable<Page>

The pages to paginate.

buttons PaginationButtons

Optional: custom buttons.

behaviour PaginationBehaviour?

Pagination behaviour.

deletion ButtonPaginationBehavior?

Deletion behaviour.

token CancellationToken

A custom cancellation token that can be cancelled at any point.

Returns

Task