NetCord 1.0.0-alpha.468

Prefix Reserved
This is a prerelease version of NetCord.
dotnet add package NetCord --version 1.0.0-alpha.468
                    
NuGet\Install-Package NetCord -Version 1.0.0-alpha.468
                    
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="NetCord" Version="1.0.0-alpha.468" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetCord" Version="1.0.0-alpha.468" />
                    
Directory.Packages.props
<PackageReference Include="NetCord" />
                    
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 NetCord --version 1.0.0-alpha.468
                    
#r "nuget: NetCord, 1.0.0-alpha.468"
                    
#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 NetCord@1.0.0-alpha.468
                    
#: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=NetCord&version=1.0.0-alpha.468&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=NetCord&version=1.0.0-alpha.468&prerelease
                    
Install as a Cake Tool

NetCord

The modern and fully customizable C# Discord library

Table of Contents

  1. 📦 Installation
  2. 🚀 Showcase
  3. 🎨 Features
  4. 🥅 Goals
  5. 📚 Guides
  6. 📄 Documentation
  7. 🩹 Support
  8. 📜 License
  9. 🛠️ Development

1. 📦 Installation

You can install NetCord packages via NuGet package manager:

Package Description
NetCord Core package with fundamental functionality.
NetCord.Services Facilitates seamless handling of commands and interactions.
NetCord.Hosting Provides .NET Generic Host extensions for the NetCord package.
NetCord.Hosting.Services Provides .NET Generic Host extensions for the NetCord.Services package.
NetCord.Hosting.AspNetCore Provides ASP.NET Core extensions for seamless handling of HTTP events.

2. 🚀 Showcase

This snippet showcases a bot with a minimal API-style /square command and includes a module-based /greet command.

Minimal API-style Bot Example

The following example sets up a bot with a minimal API-style approach for the /square command, which calculates the square of a number:

var builder = Host.CreateDefaultBuilder(args)
    .UseDiscordGateway()
    .UseApplicationCommands();

var host = builder.Build();

host.AddSlashCommand("square", "Square!", (int a) => $"{a}² = {a * a}");

await host.RunAsync();

Of course, you can also use the bare-bones approach.

Module-based Command Example

Moreover, you can use a module-based approach. Here's an example of a /greet command that greets a specified user:

public class GreetingModule : ApplicationCommandModule<ApplicationCommandContext>
{
    [SlashCommand("greet", "Greet someone!")]
    public string Greet(User user) => $"{Context.User} greets {user}!";
}

3. 🎨 Features

  • Fully Customizable - Easily tailor your Discord bot with NetCord's flexible, extensible API.
  • Easy to Use - Designed to be intuitive and easy to use for C# and .NET developers.
  • Lightweight & High Performance - Optimized for efficient resource use, ideal for scalable bots.
  • Fully Asynchronous - Built for responsive, concurrent operations in your bot.
  • Native AOT Support - Enjoy faster startups and reduced memory usage with AOT compilation.
  • Immutable Caching - Default immutable caching keeps data reliable and consistent.
  • Voice Support - Includes high-quality capabilities for sending and receiving voice.
  • HTTP Interactions - Easily handle interactions over HTTP without a persistent connection.
  • Dependency-Free - Lightweight by design, with no external dependencies required.
  • Stateless REST - Efficiently manage API requests with a stateless design.
  • Complete API Coverage - Comprehensive support for the Discord API and advanced features.
  • Open Source - Free to use and contribute to, licensed under MIT.

4. 🥅 Goals

NetCord's goal is to allow .NET developers to create fully customizable Discord bots without fighting the API wrapper itself. NetCord is designed to be easy to use and fully customizable, while still being lightweight and performant.

5. 📚 Guides

6. 📄 API Documentation

7. 🩹 Support

8. 📜 License

This repository is released under the MIT License.

9. 🛠️ Development

Versioning

NetCord follows a MAJOR.MINOR.PATCH versioning scheme:

  • MAJOR versions can introduce significant, breaking API changes.
  • MINOR versions can add new features and may include limited breaking changes that are unlikely to affect most users.
  • PATCH versions contain backwards-compatible bug fixes and improvements.

Our goal is to maintain stability while allowing for necessary evolution of the API.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on NetCord:

Package Downloads
NetCord.Services

The modern and fully customizable C# Discord library.

NetCord.Hosting

The modern and fully customizable C# Discord library.

Lavalink4NET.NetCord

High performance Lavalink wrapper for .NET | Add powerful audio playback to your NetCord-based applications with this integration for Lavalink4NET. Suitable for end users developing with NetCord.

NetCordAddons.Services

Unofficial netcord addons for better adding services using hosting.

NetCordAddons.EventHandler

Unofficial netcord addons for better handling events using hosting.

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on NetCord:

Repository Stars
space-wizards/space-station-14
A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
space-syndicate/space-station-14
🚀 Билд первого русскоязычного сервера Space Station 14
RMC-14/RMC-14
RMC-14 is an asymmetric PvP game that runs on Robust Toolbox.
lavalink4net/Lavalink4NET
Lavalink4NET is a Lavalink wrapper with node clustering, caching and custom players for .NET with support for Discord.Net, DSharpPlus, Remora, and NetCord.
DeltaV-Station/Delta-v
A fork of Space Station 14, embracing a mixture of classic SS13 chaos and experimentation only possible with the new engine
Version Downloads Last Updated
1.0.0-alpha.468 146 2/15/2026
1.0.0-alpha.467 210 2/12/2026
1.0.0-alpha.466 71 2/12/2026
1.0.0-alpha.465 117 2/12/2026
1.0.0-alpha.464 70 2/11/2026
1.0.0-alpha.463 61 2/11/2026
1.0.0-alpha.462 88 2/11/2026
1.0.0-alpha.461 367 2/9/2026
1.0.0-alpha.460 1,145 1/29/2026
1.0.0-alpha.459 129 1/28/2026
1.0.0-alpha.458 319 1/27/2026
1.0.0-alpha.457 349 1/25/2026
1.0.0-alpha.456 248 1/23/2026
1.0.0-alpha.455 1,760 1/14/2026
1.0.0-alpha.454 127 1/14/2026
1.0.0-alpha.453 167 1/14/2026
1.0.0-alpha.452 1,781 1/2/2026
1.0.0-alpha.451 2,458 12/18/2025
1.0.0-alpha.450 2,370 12/1/2025
1.0.0-alpha.449 1,421 11/20/2025
Loading failed