Remora.Discord.Pagination 3.0.1

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.1                
NuGet\Install-Package Remora.Discord.Pagination -Version 3.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="3.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 3.0.1                
#r "nuget: Remora.Discord.Pagination, 3.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=3.0.1

// Install Remora.Discord.Pagination as a Cake Tool
#tool nuget:?package=Remora.Discord.Pagination&version=3.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 is compatible.  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 10,615 9/21/2024
4.0.0 22,055 5/28/2024
3.0.20 24,656 2/5/2024
3.0.19 13,627 11/14/2023
3.0.18 27,414 7/24/2023
3.0.17 17,472 5/11/2023
3.0.16 819 3/20/2023
3.0.15 1,109 1/19/2023
3.0.14 510 1/10/2023
3.0.13 882 12/28/2022
3.0.12 767 12/13/2022
3.0.11 487 12/13/2022
3.0.10 568 12/10/2022
3.0.9 990 10/30/2022
3.0.8 15,950 9/2/2022
3.0.7 907 8/19/2022
3.0.6 1,021 7/28/2022
3.0.5 836 7/26/2022
3.0.4 723 7/26/2022
3.0.3 1,213 6/30/2022
3.0.2 745 6/30/2022
3.0.1 726 6/29/2022
3.0.0 765 6/27/2022
2.0.27 887 6/23/2022
2.0.26 724 6/23/2022
2.0.25 755 6/20/2022
2.0.24 768 6/19/2022
2.0.23 763 6/18/2022
2.0.22 830 6/14/2022
2.0.21 784 6/8/2022
2.0.20 809 6/3/2022
2.0.19 826 5/25/2022
2.0.18 764 5/23/2022
2.0.17 896 5/15/2022
2.0.16 776 5/10/2022
2.0.15 755 5/9/2022
2.0.14 754 5/8/2022
2.0.13 809 5/3/2022
2.0.12 1,094 4/28/2022
2.0.11 746 4/28/2022
2.0.10 728 4/25/2022
2.0.9 1,156 4/18/2022
2.0.8 755 4/18/2022
2.0.7 945 4/2/2022
2.0.6 780 4/2/2022
2.0.5 842 3/21/2022
2.0.4 756 3/17/2022
2.0.3 738 3/15/2022
2.0.2 1,185 2/20/2022
2.0.1 739 2/20/2022
2.0.0 794 2/19/2022
2.0.0-rc1 299 2/14/2022
1.0.6 771 2/14/2022
1.0.5 1,009 1/27/2022
1.0.4 1,918 1/11/2022
1.0.3 33,667 1/3/2022
1.0.2 543 1/2/2022
1.0.1 445 1/1/2022
1.0.0 523 12/29/2021

Update dependencies.