MIT License

项目介绍

discord-net/Discord.Net 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 MIT License 许可证,目前获得 3.5k 个 Star、750 次 Fork。

仓库全名
discord-net/Discord.Net
开源许可证
MIT License
Star 数
3.5k
Fork 数
750
未关闭 Issue
114

README 摘要

Discord.Net is an unofficial .NET API Wrapper for the Discord API (https://discord.com). 📄 Documentation Documentation can be found at https://docs.discordnet.dev/index.html 🩷 Supporting Discord.Net Discord.Net is an MIT-licensed open source project with its development made possible entirely by volunteers. If you'd like to support our efforts financially, please consider: Open Collective GitHub Sponsors PayPal 📥…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Discord.Net 用什么语言开发?

主要使用 C# 编写,采用 MIT License 许可证,目前有 3.5k 个 Star。

Discord.Net 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Discord.Net 的源码?

可以直接克隆仓库:git clone https://github.com/discord-net/Discord.Net.git,默认分支为 dev;安装与运行步骤见仓库 README。

Discord.Net 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 114 个未关闭 Issue;Star 数为 3.5k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

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

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
5102
价值分
2341
活跃状态
活跃

语言占比

C#

Release

README

Discord.Net is an unofficial .NET API Wrapper for the Discord API (https://discord.com).

📄 Documentation

Documentation can be found at https://docs.discordnet.dev/index.html

🩷 Supporting Discord.Net

Discord.Net is an MIT-licensed open source project with its development made possible entirely by volunteers. If you’d like to support our efforts financially, please consider:

📥 Installation

Stable (NuGet)

Our stable builds available from NuGet through the Discord.Net metapackage:

The individual components may also be installed from NuGet:

Nightlies

Nightlies are builds of Discord.NET that are still in an experimental phase, and have not been released.
They are available through 2 different sources:

Note 注意

GitHub Packages requires authentication. You can find more information here.

🛑 Known Issues

WebSockets (Win7 and earlier)

.NET Core 1.1 does not support WebSockets on Win7 and earlier. This issue has been fixed since the release of .NET Core 2.1. It is recommended to target .NET Core 2.1 or above for your project if you wish to run your bot on legacy platforms; alternatively, you may choose to install the Discord.Net.Providers.WS4Net package.

TLS on .NET Framework.

Discord supports only TLS1.2+ on all their websites including the API since 07/19/2022. .NET Framework does not support this protocol by default. If you depend on .NET Framework, it is suggested to upgrade your project to net6-windows. This framework supports most of the windows-only features introduced by fx, and resolves startup errors from the TLS protocol mismatch.

🗃️ Versioning Guarantees

This library generally abides by Semantic Versioning. Packages are published in MAJOR.MINOR.PATCH version format.

Patch component

An increment of the PATCH component always indicates that an internal-only change was made, generally a bugfix. These changes will not affect the public-facing API in any way, and are always guaranteed to be forward- and backwards-compatible with your codebase, any pre-compiled dependencies of your codebase.

Minor component

An increment of the MINOR component indicates that some addition was made to the library, and this addition is not backwards-compatible with prior versions. However, Discord.Net does not guarantee forward-compatibility on minor additions. In other words, we permit a limited set of breaking changes on a minor version bump.

Due to the nature of the Discord API, we will oftentimes need to add a property to an entity to support the latest API changes. Discord.Net provides interfaces as a method of consuming entities; and as such, introducing a new field to an entity is technically a breaking change. Major version bumps generally indicate some major change to the library, and as such we are hesitant to bump the major version for every minor addition to the library. To compromise, we have decided that interfaces should be treated as consumable only, and your applications should typically not be implementing interfaces.

For applications where interfaces are implemented, such as in test mocks, we apologize for this inconsistency with SemVer.

While we will never break the API (outside of interface changes) on minor builds, we will occasionally need to break the ABI, by introducing parameters to a method to match changes upstream with Discord. As such, a minor version increment may require you to recompile your code, and dependencies, such as addons, may also need to be recompiled and republished on the newer version. When a binary breaking change is made, the change will be noted in the release notes.

Major component

An increment of the MAJOR component indicates that breaking changes have been made to the library; consumers should check the release notes to determine what changes need to be made.

📚 Branches

Release/X.X

Release branch following Major.Minor. Upon release, patches will be pushed to these branches. New NuGet releases will be tagged on these branches.

Dev

Development branch, available on MyGet. This branch is what pull requests are targetted to.

Feature/X

Branches that target Dev, adding new features. Feel free to explore these branches and give feedback where necessary.

Docs/X

Usually targets Dev. These branches are used to update documentation with either new features or existing feature rework.

评论

暂无评论