5.0.1 & docs

This commit is contained in:
hydrabolt
2015-11-21 15:51:07 +00:00
parent 477c0a3525
commit cbb69edf85
6 changed files with 47 additions and 3 deletions

View File

@@ -7,6 +7,12 @@ The Equality class is used to see if two objects are equal, based on ``object_1.
If any class in Discord extends equality, it means you should never the default equality operands (``==`` & ``===``) as they could potentially be different instances and therefore appear not to be equal. Instead, use ``equalityObject.equals()`` as shown below.
.. code-block:: js
object1.equals(object2); // GOOD ✓
object1 == object2; // BAD ✖
--------
Functions