mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 04:00:42 +00:00
Added migration docs
This commit is contained in:
parent
3a4def4ec0
commit
33a83437cb
2 changed files with 33 additions and 0 deletions
|
|
@ -19,6 +19,12 @@ Contents:
|
||||||
|
|
||||||
.. _docs:
|
.. _docs:
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
:caption: General
|
||||||
|
|
||||||
|
migrating
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
:caption: Channel Documentation
|
:caption: Channel Documentation
|
||||||
|
|
|
||||||
27
docs/migrating.rst
Normal file
27
docs/migrating.rst
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
.. include:: ./vars.rst
|
||||||
|
|
||||||
|
Updating to v5.0.0
|
||||||
|
==================
|
||||||
|
|
||||||
|
If you're coming from versions below v5, you might find some changes. Here are the major changes:
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
Change 1
|
||||||
|
--------
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. code-block:: js
|
||||||
|
|
||||||
|
// OLD:
|
||||||
|
|
||||||
|
client.getUser();
|
||||||
|
client.getServer();
|
||||||
|
server.getMember(); // etc etc
|
||||||
|
|
||||||
|
// NEW:
|
||||||
|
|
||||||
|
client.users.get();
|
||||||
|
client.servers.get();
|
||||||
|
client.members.get();
|
||||||
Loading…
Reference in a new issue