Add notes (#423)

This commit is contained in:
Manuel Kraus
2016-06-15 06:04:47 +02:00
committed by abal
parent 7f864578e0
commit 0f4566dd23
10 changed files with 140 additions and 0 deletions

View File

@@ -822,6 +822,16 @@ Set the nickname of a user on a server.
- **callback** - `function` taking the following:
- **error** - error if any occurred.
setNote(user, note, `callback`)
~~~~~~~~~~~~~~~~~~~
Set the note of a user. This will only work for user accounts.
- **user** - A `User Resolvable`_ to which the note is applied.
- **note** - `String`, content of the note, or `null` to clear.
- **callback** - `function` taking the following:
- **error** - error if any occurred.
Events
------
@@ -957,6 +967,11 @@ userUnbanned
Emitted when a user is unbanned from a server. Supplies two parameters, a User_ object and a Server_ object.
noteUpdated
~~~~~~~~~~~
Emitted when a note is updated. Supplies a User_ object (containing the updated note) and the old note.
voiceJoin
~~~~~~~~

View File

@@ -87,6 +87,12 @@ createdAt
A `Date` referring to when the user was created.
note
~~~~
The note of the user, `String`.
Functions
---------