Your library to write discord apps in C# with focus on always providing access to the latest discord features.
$ npx -y skills add aiko-it-systems/discatsharp --agent claude-code
If you:
Then this is the right place for you!
We squashed DisCatSharp's Git history because of its clone size and accumulated clutter. The original history remains available through the releases, tags, and the archived pre-squash repository.
Install the latest stable release from NuGet:
dotnet add package DisCatSharp
To use the latest nightly release instead:
dotnet add package DisCatSharp --prerelease
Packages are also available from GitHub Packages.
Create a Discord bot account, store its token in the DISCORD_TOKEN environment variable, and connect the client:
using DisCatSharp;
using DisCatSharp.Enums;
string token = Environment.GetEnvironmentVariable("DISCORD_TOKEN")
?? throw new InvalidOperationException("Set the DISCORD_TOKEN environment variable.");
var discord = new DiscordClient(new DiscordConfiguration
{
Token = token,
TokenType = TokenType.Bot,
Intents = DiscordIntents.AllUnprivileged
});
await discord.ConnectAsync();
await Task.Delay(Timeout.InfiniteTimeSpan);
Continue with the complete first bot guide.
The documentation is available at docs.dcs.aitsys.dev. A backup is available at backup-docs.dcs.aitsys.dev.
Install the consumer skill globally for Codex:
gh skill install Aiko-IT-Systems/DisCatSharp use-discatsharp --agent codex --scope user --pin main
Then add the public, stateless documentation MCP as a Streamable HTTP server named discatsharp:
[mcp_servers.discatsharp]
url = "https://docs.dcs.aitsys.dev/mcp"
The MCP provides live documentation search, symbol lookup, full-page retrieval, and indexed source access. See the Agent Skills and MCP setup guide for GitHub Copilot, Claude Code, Gemini CLI, other Agent Skills clients, version pinning, and maintainer guidance.
Join our official support guild, open an issue, or email bugs@aitsys.dev.
| Package | Purpose | LTS | Latest |
|---|---|---|---|
| DisCatSharp | Core Discord API client with Gateway, REST, entities, and events. | ||
| DisCatSharp.ApplicationCommands | Slash commands, context menus, autocomplete, and command groups. | ||
| DisCatSharp.CommandsNext | Prefix and text command framework. | ||
| DisCatSharp.Interactivity | Interactive waits, pagination, components, modals, and response helpers. |
| Package | Purpose | LTS | Latest |
|---|---|---|---|
| DisCatSharp.Lavalink | Lavalink v4 client for remote audio playback. | ||
| DisCatSharp.Voice | Direct Discord voice connections with audio send, receive, and DAVE support. | ||
| DisCatSharp.Voice.Natives | Native runtime libraries used by DisCatSharp.Voice. |
| Package | Purpose | LTS | Latest |
|---|---|---|---|
| DisCatSharp.Configuration | Configuration models and binding for hosted bots. | ||
| DisCatSharp.Hosting | .NET Generic Host integration and bot lifetime management. | ||
| DisCatSharp.Hosting.AspNetCore | ASP.NET Core ingress for interactions, webhooks, OAuth callbacks, and linked roles. | ||
| DisCatSharp.Hosting.DependencyInjection | Dependency-injection helpers for clients and hosted bots. |
| Package | Purpose | LTS | Latest |
|---|---|---|---|
| DisCatSharp.ProjectTemplates | Project templates for creating hosted DisCatSharp bots. |
| Package | Purpose | LTS | Latest |
|---|---|---|---|
| DisCatSharp.Attributes | Shared annotations used by DisCatSharp packages and tooling. | ||
| DisCatSharp.Common | Shared utilities, regular expressions, and converters. | ||
| DisCatSharp.Experimental | Experimental and unsupported Discord features that may change without notice. | ||
| DisCatSharp.Analyzer | Recommended analyzers and code fixes for DisCatSharp applications. |
| Package | Purpose | LTS | Latest |
|---|
discatsharp is a Claude Code plugin with 2 hand-picked skills, indexed on Flowy in the Development category. Install it with the command on its page. It includes maintain-discatsharp, use-discatsharp. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it