Remora.Discord.API 80.0.0

Prefix Reserved
dotnet add package Remora.Discord.API --version 80.0.0
                    
NuGet\Install-Package Remora.Discord.API -Version 80.0.0
                    
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.API" Version="80.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Remora.Discord.API" Version="80.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Remora.Discord.API" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Remora.Discord.API --version 80.0.0
                    
#r "nuget: Remora.Discord.API, 80.0.0"
                    
#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.
#:package Remora.Discord.API@80.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Remora.Discord.API&version=80.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Remora.Discord.API&version=80.0.0
                    
Install as a Cake Tool

Remora.Discord.API

This package contains the implementation of Discord's API interface models, provided by Remora.Discord.API.Abstractions.

Primarily, this project takes the completely agnostic interfaces and applies additional, domain-specific knowledge to them, such as serialization formats and data range validations.

Like its sibling, these types serve as the foundation of Remora.Discord's internal implementation, but can just as easily be used to implement your own Discord library.

The primary goal of this project is to provide a concrete implementation of Discord's API types, including data object de/serialization and externally imposed limitations.

Structure

The library mostly mirrors Remora.Discord.API.Abstractions in structure, maintaining an implementation of each corresponding API object interface. The implementations are records, enabling thread-safe usage across as many concurrent actors as needed.

The Json folder contains various converters to handle cases where the default behaviour (from Remora.Rest) is not appropriate, or the type is too complex to realistically deserialize without special treatment.

There are also some helper types for accessing CDN assets, checking image formats, and storing Discord-provided constant values.

Usage

Beyond the concrete implementations of Discord's objects, the library provides a single extension method for the IServiceCollection type.

services.ConfigureDiscordJsonConverters();

This method will add a named set of JsonSerializerOptions with all appropriate JSON converters for the various API, objects along with configuring naming rules.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 (5)

Showing the top 5 NuGet packages that depend on Remora.Discord.API:

Package Downloads
Remora.Discord.Rest

Remora.Discord's implementation of Discord's REST API

Remora.Discord.Extensions

Utilities and components which extend upon Remora.Discord's base resources

Remora.Discord.Unstable

Unstable or experimental features of Remora.Discord.

VTP.Remora.Views

A (currently POC) library to implement views (e.g. MVC) into the Remora.Discord library.

VTP.Remora.Discord.Builders

Adds builders to make Remora.Discord slightly easier to use.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
80.0.0 25,927 5/24/2025
79.0.0 15,522 2/13/2025
78.0.0 49,956 5/28/2024
77.0.0 26,673 2/5/2024
76.0.0 47,999 11/14/2023
75.0.0 30,679 7/24/2023
74.0.0 19,894 5/11/2023
73.0.0 3,700 3/20/2023
72.0.0 4,274 1/19/2023
71.0.0 3,664 1/10/2023
70.0.0 4,043 12/28/2022
69.0.0 6,906 12/10/2022
68.0.0 5,303 10/30/2022
67.0.0 22,058 9/2/2022
66.0.0 5,354 8/19/2022
65.0.0 11,490 7/26/2022
64.0.0 9,164 6/29/2022
63.0.0 5,072 6/27/2022
62.0.1 5,717 6/23/2022
62.0.0 9,488 6/19/2022
Loading failed

BREAKING: Components V2 support