Remora.Discord.Pagination 3.0.6

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Remora.Discord.Pagination --version 3.0.6                
NuGet\Install-Package Remora.Discord.Pagination -Version 3.0.6                
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="3.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Remora.Discord.Pagination --version 3.0.6                
#r "nuget: Remora.Discord.Pagination, 3.0.6"                
#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=3.0.6

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

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 was computed.  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 was computed.  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 11,759 9/21/2024
4.0.0 22,072 5/28/2024
3.0.20 24,680 2/5/2024
3.0.19 13,635 11/14/2023
3.0.18 27,419 7/24/2023
3.0.17 17,476 5/11/2023
3.0.16 821 3/20/2023
3.0.15 1,111 1/19/2023
3.0.14 512 1/10/2023
3.0.13 884 12/28/2022
3.0.12 769 12/13/2022
3.0.11 489 12/13/2022
3.0.10 570 12/10/2022
3.0.9 992 10/30/2022
3.0.8 15,958 9/2/2022
3.0.7 909 8/19/2022
3.0.6 1,023 7/28/2022
3.0.5 838 7/26/2022
3.0.4 725 7/26/2022
3.0.3 1,215 6/30/2022
3.0.2 747 6/30/2022
3.0.1 728 6/29/2022
3.0.0 767 6/27/2022
2.0.27 889 6/23/2022
2.0.26 726 6/23/2022
2.0.25 757 6/20/2022
2.0.24 770 6/19/2022
2.0.23 765 6/18/2022
2.0.22 832 6/14/2022
2.0.21 786 6/8/2022
2.0.20 811 6/3/2022
2.0.19 828 5/25/2022
2.0.18 766 5/23/2022
2.0.17 898 5/15/2022
2.0.16 780 5/10/2022
2.0.15 757 5/9/2022
2.0.14 756 5/8/2022
2.0.13 811 5/3/2022
2.0.12 1,096 4/28/2022
2.0.11 748 4/28/2022
2.0.10 730 4/25/2022
2.0.9 1,158 4/18/2022
2.0.8 757 4/18/2022
2.0.7 947 4/2/2022
2.0.6 782 4/2/2022
2.0.5 844 3/21/2022
2.0.4 758 3/17/2022
2.0.3 740 3/15/2022
2.0.2 1,189 2/20/2022
2.0.1 741 2/20/2022
2.0.0 796 2/19/2022
2.0.0-rc1 301 2/14/2022
1.0.6 773 2/14/2022
1.0.5 1,013 1/27/2022
1.0.4 1,920 1/11/2022
1.0.3 33,669 1/3/2022
1.0.2 545 1/2/2022
1.0.1 447 1/1/2022
1.0.0 525 12/29/2021

Update dependencies.