Remora.Discord's implementation of Discord's REST API
$ dotnet add package Remora.Discord.RestThis 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.
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.
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:
Remora.Discord.API) - this call takes care of all transitive
dependencies itself.After this point, you may inject any of the IDiscordRest[...]API services into
your own services.