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.4 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
1234567891011121314151617181920212223242526272829303132333435
  1. # Discord.Net v0.2
  2. A .Net API Wrapper for the Discord client (http://discordapp.com).
  3. ## This is an alpha!
  4. The Discord API is still in active development, meaning this library may break at any time without notice.
  5. Discord.Net is also in early development so several functions may be unstable or not work at all.
  6. # Features
  7. - Login/Logout (with credentials or anonymous)
  8. - Accepting/Creating/Deleting Invites (standard or human readable)
  9. - Receiving/Sending Messages
  10. - Creating/Destroying Servers
  11. - Creating/Destroying Channels
  12. - Kick/Ban/Unban/Mute/Unmute/Deafen/Undeafen Users
  13. - Several Discord Events
  14. # Upcoming
  15. - Modifying User/Channel/Server Settings
  16. - Sending Private Messages (Replies are supported, starting a new private chat currently is not)
  17. # Example (Echo Client)
  18. ```
  19. var client = new DiscordClient();
  20. client.MessageCreated += (s, e) =>
  21. {
  22. client.SendMessage(e.Message.ChannelId, e.Message.Text);
  23. };
  24. await client.Connect("discordtest@email.com", "Password123");
  25. await client.AcceptInvite("channel-invite-code");
  26. ```
  27. # Known Issues
  28. - Due to current Discord restrictions, private messages are blocked unless both the sender and recipient are members of the same server.
  29. - Caches do not currently clean up when their entries are no longer referenced, and there is no cap to the message cache. For now, connecting and disconnecting will clear all caches.