C# LGPL-3.0

Disqord

Asynchronous Discord API wrapper and bot framework for .NET.

Q

Quahu

Dernière activité 16 août 2026
Quahu/Disqord

170

étoiles

25

forks

2

issues ouvertes

asynchronousbot-frameworkcsharpcsharp-librarydiscorddiscord-apidiscord-api-wrapperdiscord-botdiscord-bot-frameworkdiscord-librarydisqorddotnetdotnet-core

Ce README est souvent en anglais.

Disqord

An asynchronous Discord API wrapper for .NET that aims to make Discord bot development simple and enjoyable without needless boilerplate.

  • Designed around Microsoft's dependency injection abstractions
  • Integrates seamlessly with the Generic Host
  • Replaceable components, stateless REST, customizable caching, and more

Workflow NuGet MyGet Discord

Installation

Stable builds are available on NuGet.
Nightly Disqord builds can be pulled as NuGet packages from the MyGet feed: https://www.myget.org/F/disqord/api/v3/index.json.

Documentation

The Disqord documentation is available on GitHub Pages.

Examples

Explore examples of the library in the /examples folder, all of which are licensed under the MIT license.

Minimal Example

Typing ?ping or @YourBot ping in a channel will make the bot respond with Pong!.

using Disqord.Bot.Commands.Text;
using Disqord.Bot.Hosting;
using Microsoft.Extensions.Hosting;
using Qmmands;
using Qmmands.Text;

var host = Host.CreateApplicationBuilder(args);
host.ConfigureDiscordBot(new DiscordBotHostingContext
{
    Token = host.Configuration["DISQORD_TOKEN"], // e.g. could be an environment variable
    Prefixes = ["?"]
});

host.Build().Run();

public class ExampleModule : DiscordTextModuleBase
{
    [TextCommand("ping")]
    public IResult Ping()
    {
        return Response("Pong!");
    }
}

Projets similaires

An unofficial .Net wrapper for the Discord API (https://discord.com/)

C#botcsharpdiscord
Ddiscord-net
3,5 k étoiles752

A .NET library for making bots using the Discord API.

C#apibotcsharp
DDSharpPlus
1,3 k étoiles321

A modern, lightweight, and customizable C# Discord library with Native AOT support, immutable caching, voice capabilities, and complete API coverage.

C#botdiscorddiscord-api
NNetCordDev
457 étoiles42