{"id":13466668,"url":"https://github.com/NetCordDev/NetCord","last_synced_at":"2025-03-26T00:31:24.663Z","repository":{"id":37480041,"uuid":"428838886","full_name":"NetCordDev/NetCord","owner":"NetCordDev","description":"A modern, lightweight, and customizable C# Discord library with Native AOT support, immutable caching, voice capabilities, and complete API coverage.","archived":false,"fork":false,"pushed_at":"2025-03-19T19:16:30.000Z","size":56014,"stargazers_count":156,"open_issues_count":5,"forks_count":14,"subscribers_count":4,"default_branch":"alpha","last_synced_at":"2025-03-19T20:28:35.760Z","etag":null,"topics":["bot","discord","discord-api","discord-api-framework","discord-api-library","discord-api-wrapper","discord-bot","discord-framework","discord-library","discord-wrapper","framework","library","wrapper"],"latest_commit_sha":null,"homepage":"https://netcord.dev","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NetCordDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"KubaZ2"}},"created_at":"2021-11-16T22:54:41.000Z","updated_at":"2025-03-19T19:16:36.000Z","dependencies_parsed_at":"2023-02-11T21:30:18.901Z","dependency_job_id":"337adea6-a9d9-4837-9bb9-3646ba6edbd0","html_url":"https://github.com/NetCordDev/NetCord","commit_stats":null,"previous_names":["netcorddev/netcord"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetCordDev%2FNetCord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetCordDev%2FNetCord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetCordDev%2FNetCord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetCordDev%2FNetCord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetCordDev","download_url":"https://codeload.github.com/NetCordDev/NetCord/tar.gz/refs/heads/alpha","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245566098,"owners_count":20636390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord","discord-api","discord-api-framework","discord-api-library","discord-api-wrapper","discord-bot","discord-framework","discord-library","discord-wrapper","framework","library","wrapper"],"created_at":"2024-07-31T15:00:48.118Z","updated_at":"2025-03-26T00:31:24.656Z","avatar_url":"https://github.com/NetCordDev.png","language":"C#","funding_links":["https://github.com/sponsors/KubaZ2"],"categories":["API Libraries","Libraries"],"sub_categories":["C#"],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"Resources/Logo/svg/BigOutline.svg\" alt=\"Logo\" width=\"650px\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eThe modern and fully customizable C# Discord library\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    ⭐ Found NetCord helpful or inspiring? Show your support by giving it a star! ⭐\n\u003c/p\u003e\n\n# Table of Contents\n\n1. [📦 Installation](#1--installation)\n2. [🚀 Showcase](#2--showcase)\n3. [🎨 Features](#3--features)\n4. [🥅 Goals](#4--goals)\n5. [📚 Guides](#5--guides)\n6. [📄 Documentation](#6--documentation)\n7. [🩹 Support](#7--support)\n8. [📜 License](#8--license)\n9. [🛠️ Development](#9-%EF%B8%8F-development)\n\n## 1. 📦 Installation\n\nYou can install NetCord packages via NuGet package manager:\n\n| Package                                                                                     | Description                                                                  |\n|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|\n| **[NetCord](https://www.nuget.org/packages/NetCord)**                                       | Core package with fundamental functionality.                                 |\n| **[NetCord.Services](https://www.nuget.org/packages/NetCord.Services)**                     | Facilitates seamless handling of commands and interactions.                  |\n| **[NetCord.Hosting](https://www.nuget.org/packages/NetCord.Hosting)**                       | Provides .NET Generic Host extensions for the NetCord package.               |\n| **[NetCord.Hosting.Services](https://www.nuget.org/packages/NetCord.Hosting.Services)**     | Provides .NET Generic Host extensions for the NetCord.Services package.      |\n| **[NetCord.Hosting.AspNetCore](https://www.nuget.org/packages/NetCord.Hosting.AspNetCore)** | Provides ASP.NET Core extensions for seamless handling of HTTP interactions. |\n\n## 2. 🚀 Showcase\n\nThis snippet showcases a bot with a minimal API-style `/square` command and includes a module-based `/greet` command.\n\n\u003cdetails\u003e\n\u003csummary\u003eRequired usings omitted for readability, click here to show\u003c/summary\u003e\n\n```cs\nusing Microsoft.Extensions.Hosting;\n\nusing NetCord;\nusing NetCord.Services.ApplicationCommands;\nusing NetCord.Hosting.Gateway;\nusing NetCord.Hosting.Services.ApplicationCommands;\n```\n\n\u003c/details\u003e\n\n### Minimal API-style Bot Example\n\nThe following example sets up a bot with a minimal API-style approach for the `/square` command, which calculates the square of a number:\n\n```cs\nvar builder = Host.CreateDefaultBuilder(args)\n    .UseDiscordGateway()\n    .UseApplicationCommands();\n\nvar host = builder.Build()\n    .AddSlashCommand(\"square\", \"Square!\", (int a) =\u003e $\"{a}² = {a * a}\")\n    .UseGatewayEventHandlers();\n\nawait host.RunAsync();\n```\n\nOf course, you can also use the bare-bones approach.\n\n### Module-based Command Example\n\nMoreover, you can use a module-based approach. Here's an example of a `/greet` command that greets a specified user:\n\n```cs\npublic class GreetingModule : ApplicationCommandModule\u003cApplicationCommandContext\u003e\n{\n    [SlashCommand(\"greet\", \"Greet someone!\")]\n    public string Greet(User user) =\u003e $\"{Context.User} greets {user}!\";\n}\n```\n\n## 3. 🎨 Features\n\n- **Fully Customizable** - Easily tailor your Discord bot with NetCord's flexible, extensible API.\n- **Easy to Use** - Designed to be intuitive and easy to use for C# and .NET developers.\n- **Lightweight \u0026 High Performance** - Optimized for efficient resource use, ideal for scalable bots.\n- **Fully Asynchronous** - Built for responsive, concurrent operations in your bot.\n- **Native AOT Support** - Enjoy faster startups and reduced memory usage with AOT compilation.\n- **Immutable Caching** - Default immutable caching keeps data reliable and consistent.\n- **Voice Support** - Includes high-quality capabilities for sending and receiving voice.\n- **HTTP Interactions** - Easily handle interactions over HTTP without a persistent connection.\n- **Dependency-Free** - Lightweight by design, with no external dependencies required.\n- **Stateless REST** - Efficiently manage API requests with a stateless design.\n- **Complete API Coverage** - Comprehensive support for the Discord API and advanced features.\n- **Open Source** - Free to use and contribute to, licensed under MIT.\n\n## 4. 🥅 Goals\n\nNetCord'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.\n\n## 5. 📚 Guides\n\n- **[Getting Started](https://netcord.dev/guides/getting-started/installation.html)**\n\n## 6. 📄 API Documentation\n\n- **[API Documentation](https://netcord.dev/docs/)**\n\n## 7. 🩹 Support\n\n\u003ca href=\"https://discord.gg/meaSHTGyUH\"\u003e\u003cimg src=\"https://discord.com/api/guilds/988888771187581010/widget.png?style=banner2\" alt=\"Discord\"\u003e\u003c/a\u003e\n\n## 8. 📜 License\n\nThis repository is released under the [MIT License](LICENSE.md).\n\n## 9. 🛠️ Development\n\n### Versioning\n\nNetCord follows a `MAJOR.MINOR.PATCH` versioning scheme:\n\n- MAJOR versions can introduce significant, breaking API changes.\n- MINOR versions can add new features and may include limited breaking changes that are unlikely to affect most users.\n- PATCH versions contain backwards-compatible bug fixes and improvements.\n\nOur goal is to maintain stability while allowing for necessary evolution of the API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNetCordDev%2FNetCord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNetCordDev%2FNetCord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNetCordDev%2FNetCord/lists"}