The .NET Discord API Wrapper You Deserve
Disqord aims to be the easiest to start with and most enjoyable to master Discord API wrapper for .NET.
The library prioritizes user experience and public API design. Discord's unhandy JSON models are mapped to straightforward and consistent polymorphic entities.
Get StartedShortest Ping-Pong Bot Example
Typing @YourBot ping
will make your bot respond with Pong!
.
using Disqord.Bot;
using Disqord.Bot.Hosting;
using Microsoft.Extensions.Hosting;
using Qmmands;
await new HostBuilder()
.ConfigureDiscordBot((context, bot) => bot.Token = "YOUR_TOKEN_HERE")
.RunConsoleAsync();
public class ExampleModule : DiscordModuleBase
{
[Command("ping")]
public DiscordCommandResult Ping()
=> Response("Pong!");
}