Remora.Discord.Pagination
2.0.13
See the version list below for details.
dotnet add package Remora.Discord.Pagination --version 2.0.13
NuGet\Install-Package Remora.Discord.Pagination -Version 2.0.13
<PackageReference Include="Remora.Discord.Pagination" Version="2.0.13" />
paket add Remora.Discord.Pagination --version 2.0.13
#r "nuget: Remora.Discord.Pagination, 2.0.13"
// Install Remora.Discord.Pagination as a Cake Addin
#addin nuget:?package=Remora.Discord.Pagination&version=2.0.13
// Install Remora.Discord.Pagination as a Cake Tool
#tool nuget:?package=Remora.Discord.Pagination&version=2.0.13
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.
PaginatedMessageEntity
serves as the controller, while PaginatedMessageData
serves as the model.
Usage
You may create paginated messages by calling one of the following extension
methods on InteractiveMessageService
.
interactiveMessages.SendPaginatedMessageAsync(channelID, sourceUserID, pages);
interactiveMessages.SendContextualPaginatedMessageAsync(sourceUserID, pages);
interactiveMessages.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 | Versions 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. |
-
.NETStandard 2.1
- Remora.Discord.Interactivity (>= 3.0.13)
-
net5.0
- Remora.Discord.Interactivity (>= 3.0.13)
-
net6.0
- Remora.Discord.Interactivity (>= 3.0.13)
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 |
---|---|---|
3.0.20 | 12,454 | 2/5/2024 |
3.0.19 | 13,500 | 11/14/2023 |
3.0.18 | 27,263 | 7/24/2023 |
3.0.17 | 17,425 | 5/11/2023 |
3.0.16 | 774 | 3/20/2023 |
3.0.15 | 1,055 | 1/19/2023 |
3.0.14 | 467 | 1/10/2023 |
3.0.13 | 853 | 12/28/2022 |
3.0.12 | 709 | 12/13/2022 |
3.0.11 | 444 | 12/13/2022 |
3.0.10 | 535 | 12/10/2022 |
3.0.9 | 948 | 10/30/2022 |
3.0.8 | 15,890 | 9/2/2022 |
3.0.7 | 865 | 8/19/2022 |
3.0.6 | 977 | 7/28/2022 |
3.0.5 | 783 | 7/26/2022 |
3.0.4 | 681 | 7/26/2022 |
3.0.3 | 1,179 | 6/30/2022 |
3.0.2 | 690 | 6/30/2022 |
3.0.1 | 701 | 6/29/2022 |
3.0.0 | 722 | 6/27/2022 |
2.0.27 | 844 | 6/23/2022 |
2.0.26 | 687 | 6/23/2022 |
2.0.25 | 720 | 6/20/2022 |
2.0.24 | 724 | 6/19/2022 |
2.0.23 | 723 | 6/18/2022 |
2.0.22 | 796 | 6/14/2022 |
2.0.21 | 749 | 6/8/2022 |
2.0.20 | 785 | 6/3/2022 |
2.0.19 | 799 | 5/25/2022 |
2.0.18 | 730 | 5/23/2022 |
2.0.17 | 849 | 5/15/2022 |
2.0.16 | 748 | 5/10/2022 |
2.0.15 | 723 | 5/9/2022 |
2.0.14 | 722 | 5/8/2022 |
2.0.13 | 778 | 5/3/2022 |
2.0.12 | 1,040 | 4/28/2022 |
2.0.11 | 709 | 4/28/2022 |
2.0.10 | 695 | 4/25/2022 |
2.0.9 | 1,095 | 4/18/2022 |
2.0.8 | 715 | 4/18/2022 |
2.0.7 | 906 | 4/2/2022 |
2.0.6 | 736 | 4/2/2022 |
2.0.5 | 795 | 3/21/2022 |
2.0.4 | 711 | 3/17/2022 |
2.0.3 | 706 | 3/15/2022 |
2.0.2 | 1,157 | 2/20/2022 |
2.0.1 | 701 | 2/20/2022 |
2.0.0 | 745 | 2/19/2022 |
2.0.0-rc1 | 260 | 2/14/2022 |
1.0.6 | 731 | 2/14/2022 |
1.0.5 | 965 | 1/27/2022 |
1.0.4 | 1,858 | 1/11/2022 |
1.0.3 | 33,625 | 1/3/2022 |
1.0.2 | 506 | 1/2/2022 |
1.0.1 | 412 | 1/1/2022 |
1.0.0 | 482 | 12/29/2021 |
Update dependencies.