Method SendPaginatedResponseAsync
- Namespace
- DSharpPlus.Interactivity
- Assembly
- DSharpPlus.Interactivity.dll
SendPaginatedResponseAsync(DiscordInteraction, bool, DiscordUser, IEnumerable<Page>, PaginationButtons, PaginationBehaviour?, ButtonPaginationBehavior?, ButtonDisableBehavior, List<PaginationButtonType>, CancellationToken)
Sends a paginated message in response to an interaction.
Pass the interaction directly. Interactivity will ACK it.
public Task SendPaginatedResponseAsync(DiscordInteraction interaction, bool ephemeral, DiscordUser user, IEnumerable<Page> pages, PaginationButtons buttons = null, PaginationBehaviour? behaviour = null, ButtonPaginationBehavior? deletion = null, ButtonDisableBehavior disableBehavior = ButtonDisableBehavior.Disable, List<PaginationButtonType> disabledButtons = null, CancellationToken token = default)
Parameters
interactionDiscordInteractionThe interaction to create a response to.
ephemeralboolWhether the response should be ephemeral.
userDiscordUserThe user to listen for button presses from.
pagesIEnumerable<Page>The pages to paginate.
buttonsPaginationButtonsOptional: custom buttons
behaviourPaginationBehaviour?Pagination behaviour.
deletionButtonPaginationBehavior?Deletion behaviour
disableBehaviorButtonDisableBehaviorWhether to disable or remove the buttons if there is only one page
disabledButtonsList<PaginationButtonType>Disabled buttons
tokenCancellationTokenA custom cancellation token that can be cancelled at any point.