You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5 kB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
12345678910111213141516171819202122232425262728293031323334353637
  1. # Discord.Net v0.4.1
  2. An unofficial .Net API Wrapper for the Discord client (http://discordapp.com).
  3. [Join the discussion](https://discord.gg/0SBTUU1wZTVjAMPx) on Discord.
  4. ### This is an alpha!
  5. The Discord API is still in active development, meaning this library may break at any time without notice.
  6. Discord.Net itself is also in early development so several functions may be unstable or not work at all.
  7. ### Features
  8. - Login/Logout (with credentials or anonymous)
  9. - Accepting/Creating/Deleting Invites (standard or human readable)
  10. - Receiving/Sending Messages
  11. - Creating/Destroying Servers
  12. - Creating/Destroying Channels (text, void or PM)
  13. - Kick/Ban/Unban/Mute/Unmute/Deafen/Undeafen Users
  14. - Several Discord Events
  15. - Supports .Net 4.5, DNX 4.5.1, and DNX Core 5.0
  16. ### NuGet Packages
  17. - [Discord.Net](https://www.nuget.org/packages/Discord.Net/)
  18. - [Discord.Net.Commands](https://www.nuget.org/packages/Discord.Net.Commands/)
  19. ### Example (Echo Client)
  20. ```
  21. var client = new DiscordClient();
  22. client.MessageCreated += (s, e) =>
  23. {
  24. client.SendMessage(e.Message.ChannelId, e.Message.Text);
  25. };
  26. await client.Connect("discordtest@email.com", "Password123");
  27. await client.AcceptInvite("channel-invite-code");
  28. ```
  29. ### Known Issues
  30. - Due to current Discord restrictions, private messages are blocked unless both the sender and recipient are members of the same server.
  31. - Caches do not currently clean up when their entries are no longer referenced, and there is no cap to the message cache. For now, disconencting and reconnecting will clear all caches.