您最多选择25个标签 标签必须以中文、字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

8 年前
8 年前
8 年前
8 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Discord.Net
  2. [![NuGet](https://img.shields.io/nuget/vpre/Discord.Net.svg?maxAge=2592000?style=plastic)](https://www.nuget.org/packages/Discord.Net)
  3. [![MyGet](https://img.shields.io/myget/discord-net/vpre/Discord.Net.svg)](https://www.myget.org/feed/Packages/discord-net)
  4. [![Build status](https://ci.appveyor.com/api/projects/status/5sb7n8a09w9clute/branch/dev?svg=true)](https://ci.appveyor.com/project/RogueException/discord-net/branch/dev)
  5. [![Discord](https://discordapp.com/api/guilds/81384788765712384/widget.png)](https://discord.gg/jkrBmQR)
  6. An unofficial .NET API Wrapper for the Discord client (http://discordapp.com).
  7. Check out the [documentation](https://discord.foxbot.me/docs/) or join the [Discord API Chat](https://discord.gg/jkrBmQR).
  8. ## Installation
  9. ### Stable (NuGet)
  10. Our stable builds available from NuGet through the Discord.Net metapackage:
  11. - [Discord.Net](https://www.nuget.org/packages/Discord.Net/)
  12. The individual components may also be installed from NuGet:
  13. - [Discord.Net.Commands](https://www.nuget.org/packages/Discord.Net.Commands/)
  14. - [Discord.Net.Rest](https://www.nuget.org/packages/Discord.Net.Rest/)
  15. - [Discord.Net.Rpc](https://www.nuget.org/packages/Discord.Net.Rpc/)
  16. - [Discord.Net.WebSocket](https://www.nuget.org/packages/Discord.Net.WebSocket/)
  17. - [Discord.Net.Webhook](https://www.nuget.org/packages/Discord.Net.Webhook/)
  18. The following provider is available for platforms not supporting .NET Standard 1.3:
  19. - [Discord.Net.Providers.WS4Net](https://www.nuget.org/packages/Discord.Net.Providers.WS4Net/)
  20. ### Unstable (MyGet)
  21. Nightly builds are available through our MyGet feed (`https://www.myget.org/F/discord-net/api/v3/index.json`).
  22. ## Compiling
  23. In order to compile Discord.Net, you require the following:
  24. ### Using Visual Studio
  25. - [Visual Studio 2017](https://www.microsoft.com/net/core#windowsvs2017)
  26. - [.NET Core SDK](https://www.microsoft.com/net/download/core)
  27. The .NET Core workload must be selected during Visual Studio installation.
  28. ### Using Command Line
  29. - [.NET Core SDK](https://www.microsoft.com/net/download/core)
  30. ## Known Issues
  31. ### WebSockets (Win7 and earlier)
  32. .NET Core 1.1 does not support WebSockets on Win7 and earlier. It's recommended to use the Discord.Net.Providers.WS4Net package until this is resolved.
  33. Track the issue [here](https://github.com/dotnet/corefx/issues/9503).