Remora.Discord.Rest
51.0.0
Prefix Reserved
dotnet add package Remora.Discord.Rest --version 51.0.0
NuGet\Install-Package Remora.Discord.Rest -Version 51.0.0
<PackageReference Include="Remora.Discord.Rest" Version="51.0.0" />
paket add Remora.Discord.Rest --version 51.0.0
#r "nuget: Remora.Discord.Rest, 51.0.0"
// Install Remora.Discord.Rest as a Cake Addin #addin nuget:?package=Remora.Discord.Rest&version=51.0.0 // Install Remora.Discord.Rest as a Cake Tool #tool nuget:?package=Remora.Discord.Rest&version=51.0.0
Remora.Discord.Rest
This package contains an implementations of Discord's REST API, complete with client-side data validation checks and full rate limiting support.
The primary goal of this project is to provide a concrete, rules-compliant implementation of Discord's REST API endpoints, mapping them to appropriately accessible asynchronous tasks and services.
Structure
The library mostly mirrors Remora.Discord.API.Abstractions in structure, maintaining an implementation of each corresponding REST API interface. The implementations are registered as transient services, available to you via dependency injection.
Usage
To enable injection of the REST API services, add them to your service container
by way of the AddDiscordRest
extension method.
services.AddDiscordRest(serviceProvider => GetTokenFromSomewhere(serviceProvider));
Two things to note:
- You are not required to call any other methods from dependency libraries
(such as
Remora.Discord.API
) - this call takes care of all transitive dependencies itself. - You must, at this point, provide a way to access your bot's token in plain text. This access only happens after the container is constructed, and an API instance is requested, so you have access to the built container.
After this point, you may inject any of the IDiscordRest[...]API
services into
your own services.
Product | Versions 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. |
-
.NETStandard 2.1
- Microsoft.Extensions.Caching.Memory (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.6)
- Polly (>= 8.4.0)
- Polly.Contrib.WaitAndRetry (>= 1.1.1)
- Remora.Discord.API (>= 78.0.0)
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
-
net6.0
- Microsoft.Extensions.Caching.Memory (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.6)
- Polly (>= 8.4.0)
- Polly.Contrib.WaitAndRetry (>= 1.1.1)
- Remora.Discord.API (>= 78.0.0)
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
-
net7.0
- Microsoft.Extensions.Caching.Memory (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.6)
- Polly (>= 8.4.0)
- Polly.Contrib.WaitAndRetry (>= 1.1.1)
- Remora.Discord.API (>= 78.0.0)
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
-
net8.0
- Microsoft.Extensions.Caching.Memory (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.6)
- Polly (>= 8.4.0)
- Polly.Contrib.WaitAndRetry (>= 1.1.1)
- Remora.Discord.API (>= 78.0.0)
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Remora.Discord.Rest:
Package | Downloads |
---|---|
Remora.Discord.Gateway
Remora.Discord's implementation of a Discord gateway client |
|
Remora.Discord.Unstable
Unstable or experimental features of Remora.Discord. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
51.0.0 | 34,007 | 5/28/2024 |
50.0.0 | 25,555 | 2/5/2024 |
49.0.0 | 47,414 | 11/14/2023 |
48.0.0 | 29,925 | 7/24/2023 |
47.1.0 | 19,370 | 5/11/2023 |
47.0.0 | 3,009 | 3/20/2023 |
46.0.0 | 3,699 | 1/19/2023 |
45.0.1 | 3,090 | 1/10/2023 |
45.0.0 | 3,474 | 12/28/2022 |
44.0.1 | 6,220 | 12/10/2022 |
44.0.0 | 3,933 | 10/30/2022 |
43.0.0 | 20,483 | 9/2/2022 |
42.0.0 | 4,064 | 8/19/2022 |
41.0.1 | 6,715 | 7/26/2022 |
41.0.0 | 3,683 | 7/26/2022 |
40.0.4 | 7,685 | 6/29/2022 |
40.0.3 | 3,710 | 6/27/2022 |
40.0.2 | 3,975 | 6/23/2022 |
40.0.1 | 4,778 | 6/20/2022 |
40.0.0 | 3,734 | 6/19/2022 |
39.0.1 | 3,720 | 6/18/2022 |
39.0.0 | 3,778 | 6/14/2022 |
38.0.1 | 3,738 | 6/8/2022 |
38.0.0 | 3,791 | 6/3/2022 |
37.0.0 | 3,818 | 5/25/2022 |
36.0.0 | 6,704 | 5/15/2022 |
35.0.1 | 3,908 | 5/10/2022 |
35.0.0 | 6,069 | 5/3/2022 |
34.0.0 | 7,203 | 4/25/2022 |
33.0.0 | 4,566 | 4/18/2022 |
32.0.0 | 8,010 | 4/2/2022 |
31.0.0 | 9,255 | 3/15/2022 |
30.0.1 | 5,026 | 2/20/2022 |
30.0.0 | 3,585 | 2/19/2022 |
30.0.0-rc1 | 1,244 | 2/14/2022 |
29.0.0 | 3,645 | 2/14/2022 |
28.0.0 | 3,912 | 1/27/2022 |
27.1.0 | 5,619 | 1/11/2022 |
27.0.3 | 35,747 | 1/2/2022 |
27.0.2 | 3,413 | 12/23/2021 |
27.0.1 | 1,699 | 12/21/2021 |
27.0.0 | 1,893 | 12/16/2021 |
26.0.0 | 1,763 | 12/11/2021 |
25.0.3 | 1,960 | 12/5/2021 |
25.0.2 | 3,661 | 11/26/2021 |
25.0.1 | 7,496 | 11/24/2021 |
25.0.0 | 2,799 | 11/20/2021 |
24.0.3 | 2,464 | 11/9/2021 |
24.0.2 | 2,302 | 11/6/2021 |
24.0.1 | 2,648 | 10/30/2021 |
24.0.0 | 1,973 | 10/28/2021 |
23.0.8 | 4,208 | 10/15/2021 |
23.0.7 | 2,551 | 10/7/2021 |
23.0.5 | 2,098 | 10/3/2021 |
23.0.4 | 1,953 | 10/2/2021 |
23.0.3 | 1,862 | 9/30/2021 |
23.0.2 | 2,528 | 9/26/2021 |
23.0.1 | 1,931 | 9/24/2021 |
23.0.0 | 1,949 | 9/23/2021 |
22.0.5 | 2,012 | 9/16/2021 |
22.0.4 | 2,047 | 9/15/2021 |
22.0.3 | 2,103 | 9/8/2021 |
22.0.2 | 3,343 | 9/4/2021 |
22.0.1 | 3,654 | 8/21/2021 |
22.0.0 | 2,140 | 8/18/2021 |
21.0.2 | 3,118 | 8/12/2021 |
21.0.1 | 1,587 | 8/11/2021 |
21.0.0 | 2,338 | 8/11/2021 |
20.1.2 | 520 | 8/9/2021 |
20.1.1 | 3,799 | 8/2/2021 |
20.1.0 | 2,425 | 7/31/2021 |
20.0.0 | 2,018 | 7/29/2021 |
19.0.2 | 1,987 | 7/28/2021 |
19.0.1 | 1,868 | 7/28/2021 |
19.0.0 | 2,359 | 7/22/2021 |
18.0.0 | 1,876 | 7/17/2021 |
17.1.1 | 1,814 | 7/14/2021 |
17.1.0 | 1,926 | 7/12/2021 |
17.0.0 | 1,840 | 7/11/2021 |
16.0.1 | 1,895 | 7/5/2021 |
16.0.0 | 1,673 | 7/3/2021 |
15.0.0 | 1,744 | 7/1/2021 |
14.0.0 | 2,035 | 6/14/2021 |
13.0.0 | 980 | 6/10/2021 |
13.0.0-beta2 | 1,150 | 5/30/2021 |
13.0.0-beta1 | 1,530 | 5/28/2021 |
12.0.0 | 2,887 | 5/20/2021 |
11.0.0 | 2,271 | 5/4/2021 |
10.0.0 | 1,883 | 4/22/2021 |
9.0.1 | 1,814 | 4/15/2021 |
9.0.0 | 1,839 | 4/10/2021 |
8.0.0 | 2,026 | 4/5/2021 |
7.0.5 | 1,931 | 4/4/2021 |
7.0.4 | 2,489 | 3/28/2021 |
7.0.3 | 2,761 | 3/25/2021 |
7.0.2 | 3,348 | 3/16/2021 |
7.0.1 | 1,818 | 3/14/2021 |
7.0.0 | 2,975 | 3/11/2021 |
6.0.8 | 2,061 | 3/6/2021 |
6.0.7 | 1,908 | 3/1/2021 |
6.0.6 | 3,124 | 2/28/2021 |
6.0.5 | 3,293 | 2/22/2021 |
6.0.4 | 1,797 | 2/21/2021 |
6.0.3 | 1,517 | 2/16/2021 |
6.0.2 | 1,868 | 2/13/2021 |
6.0.1 | 2,146 | 2/11/2021 |
6.0.0 | 1,852 | 2/10/2021 |
5.0.1 | 1,639 | 2/6/2021 |
5.0.0 | 1,672 | 2/5/2021 |
4.0.2 | 1,637 | 1/29/2021 |
4.0.1 | 1,606 | 1/27/2021 |
4.0.0 | 1,968 | 1/21/2021 |
3.0.0 | 1,871 | 1/17/2021 |
2.0.1 | 1,691 | 1/10/2021 |
2.0.0 | 1,836 | 1/10/2021 |
1.1.2 | 1,792 | 1/9/2021 |
1.1.1 | 1,956 | 12/31/2020 |
1.1.0 | 1,816 | 12/27/2020 |
1.0.0 | 3,368 | 12/25/2020 |
1.0.0-beta8 | 1,037 | 12/18/2020 |
1.0.0-beta7 | 1,061 | 12/10/2020 |
1.0.0-beta6 | 1,087 | 11/26/2020 |
1.0.0-beta5 | 1,670 | 11/14/2020 |
1.0.0-beta4 | 1,289 | 11/8/2020 |
1.0.0-beta3 | 458 | 10/17/2020 |
1.0.0-beta2 | 458 | 10/6/2020 |
1.0.0-beta10 | 1,034 | 12/23/2020 |
1.0.0-beta1 | 449 | 10/6/2020 |
1.0.0-alpha1 | 446 | 9/27/2020 |
Update dependencies.
BREAKING: Implement support for user applications.
BREAKING: Implement support for one-time purchases.
BREAKING: Implement support for nonce enforcement.
BREAKING: Implement bulk banning endpoint.
BREAKING: Implement support for polls.