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
 
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.
The Disqord documentation is available on GitHub Pages.
Explore examples of the library in the /examples folder, all of which are licensed under the MIT license.
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!");
    }
}