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.

terminology.md 1.0 KiB

12345678910111213141516171819202122232425
  1. ---
  2. uid: Terminology
  3. title: Terminology
  4. ---
  5. # Terminology
  6. ## Preface
  7. Most terms for objects remain the same between 0.9 and 1.0. The major difference is that the ``Server`` is now called ``Guild``, to stay in line with Discord internally
  8. ## Introduction to Interfaces
  9. Discord.Net 1.0 is built strictly around Interfaces. There are no methods that return a concrete object, only an interface.
  10. Many of the interfaces in Discord.Net are linked through inheritance. For example, @Discord.IChannel represents any channel in Discord. @Discord.IGuildChannel inherits from IChannel, and represents all channels belonging to a Guild. As a result, @Discord.IChannel can sometimes be cast to @Discord.IGuildChannel, and you may find yourself doing this frequently in order to properly utilize the library.
  11. ### The Inheritance Tree
  12. You may want to familiarize yourself with the inheritance in Discord.Net. An inheritance tree is provided below.
  13. ![](https://i.lithi.io/kpgd.png)
  14. ![](https://i.lithi.io/kNrr.png)
  15. ![](https://i.lithi.io/gs8d.png)
  16. ![](https://i.lithi.io/LAJr.png)