Method SendPaginatedResponseAsync
- Namespace
- DSharpPlus.Interactivity.Extensions
- Assembly
- DSharpPlus.Interactivity.dll
SendPaginatedResponseAsync(DiscordInteraction, bool, DiscordUser, IEnumerable<Page>, PaginationButtons, PaginationBehaviour?, ButtonPaginationBehavior?, bool, CancellationToken)
Sends a paginated message in response to an interaction.
Pass the interaction directly. Interactivity will ACK it.
public static Task SendPaginatedResponseAsync(this DiscordInteraction interaction, bool ephemeral, DiscordUser user, IEnumerable<Page> pages, PaginationButtons buttons = null, PaginationBehaviour? behaviour = null, ButtonPaginationBehavior? deletion = null, bool asEditResponse = false, CancellationToken token = default)
Parameters
interaction
DiscordInteractionThe interaction to create a response to.
ephemeral
boolWhether the response should be ephemeral.
user
DiscordUserThe user to listen for button presses from.
pages
IEnumerable<Page>The pages to paginate.
buttons
PaginationButtonsOptional: custom buttons
behaviour
PaginationBehaviour?Pagination behaviour.
deletion
ButtonPaginationBehavior?Deletion behaviour
asEditResponse
boolIf the response as edit of previous response.
token
CancellationTokenA custom cancellation token that can be cancelled at any point.
Returns
- Task