Started work on function

This commit is contained in:
hydrabolt
2015-09-27 20:10:15 +01:00
parent 2f52ca50bf
commit 3e9a2bd346
3 changed files with 17 additions and 3 deletions

View File

@@ -100,4 +100,16 @@ messages
An `Array` of Message_ objects the client has received over its uptime.
Functions
---------
---------
.. note :: Any functions used here that take callbacks as an optional parameter can also be used as Promises_. For example, you can do:
.. code-block:: js
bot.login(email, password).then(success).catch(err);
// OR use callbacks:
bot.login(email, password, function(err, token){
});