Remora.Discord.Pagination 4.0.1

Prefix Reserved
dotnet add package Remora.Discord.Pagination --version 4.0.1                
NuGet\Install-Package Remora.Discord.Pagination -Version 4.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Remora.Discord.Pagination" Version="4.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Remora.Discord.Pagination --version 4.0.1                
#r "nuget: Remora.Discord.Pagination, 4.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Remora.Discord.Pagination as a Cake Addin
#addin nuget:?package=Remora.Discord.Pagination&version=4.0.1

// Install Remora.Discord.Pagination as a Cake Tool
#tool nuget:?package=Remora.Discord.Pagination&version=4.0.1                

Remora.Discord.Pagination

This package provides a simple implementation of pagination for messages via message component buttons, using the interactivity framework provided via Remora.Discord.Interactivity.

Structure

This library uses the in-memory model to persist pagination data (such as the available pages, the current page, and the message owner) and allow the user to flip through one or more "pages" of content via interaction buttons.

Usage

You may create paginated messages by calling one of the following extension methods on FeedbackService.

FeedbackService.SendPaginatedMessageAsync(channelID, sourceUserID, pages);
FeedbackService.SendContextualPaginatedMessageAsync(sourceUserID, pages);
FeedbackService.SendPrivatePaginatedMessageAsync(user, pages);

The pages are provided as a list of embed objects, which can be created either manually or via one of the available factory methods on the PageFactory or PaginatedEmbedFactory classes.

var page = PageFactory.FromFields(fields);
var pages = PaginatedEmbedFactory.PagesFromCollection(items, item => CreateEmbedFromItem(item));
var pages = PaginatedEmbedFactory.SimpleFieldsFromCollection(items, item => item.FieldTitle, item => item.FieldValue);

You can also tweak the appearance of the buttons and help text by way of PaginatedAppearanceOptions, which can be passed along when sending a paginated message.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Remora.Discord.Pagination:

Package Downloads
Remora.Discord

Metapackage for Remora.Discord's various components

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1 15,767 9/21/2024
4.0.0 22,094 5/28/2024
3.0.20 24,813 2/5/2024
3.0.19 13,638 11/14/2023
3.0.18 27,426 7/24/2023
3.0.17 17,480 5/11/2023
3.0.16 824 3/20/2023
3.0.15 1,114 1/19/2023
3.0.14 514 1/10/2023
3.0.13 889 12/28/2022
3.0.12 774 12/13/2022
3.0.11 491 12/13/2022
3.0.10 572 12/10/2022
3.0.9 996 10/30/2022
3.0.8 15,960 9/2/2022
3.0.7 913 8/19/2022
3.0.6 1,025 7/28/2022
3.0.5 839 7/26/2022
3.0.4 727 7/26/2022
3.0.3 1,221 6/30/2022
3.0.2 749 6/30/2022
3.0.1 729 6/29/2022
3.0.0 768 6/27/2022
2.0.27 891 6/23/2022
2.0.26 728 6/23/2022
2.0.25 759 6/20/2022
2.0.24 772 6/19/2022
2.0.23 766 6/18/2022
2.0.22 834 6/14/2022
2.0.21 788 6/8/2022
2.0.20 813 6/3/2022
2.0.19 830 5/25/2022
2.0.18 768 5/23/2022
2.0.17 900 5/15/2022
2.0.16 782 5/10/2022
2.0.15 759 5/9/2022
2.0.14 758 5/8/2022
2.0.13 813 5/3/2022
2.0.12 1,098 4/28/2022
2.0.11 751 4/28/2022
2.0.10 732 4/25/2022
2.0.9 1,160 4/18/2022
2.0.8 759 4/18/2022
2.0.7 948 4/2/2022
2.0.6 784 4/2/2022
2.0.5 847 3/21/2022
2.0.4 760 3/17/2022
2.0.3 742 3/15/2022
2.0.2 1,191 2/20/2022
2.0.1 743 2/20/2022
2.0.0 797 2/19/2022
2.0.0-rc1 301 2/14/2022
1.0.6 775 2/14/2022
1.0.5 1,018 1/27/2022
1.0.4 1,922 1/11/2022
1.0.3 33,682 1/3/2022
1.0.2 547 1/2/2022
1.0.1 449 1/1/2022
1.0.0 527 12/29/2021

Update dependencies.