mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Add notes (#423)
This commit is contained in:
@@ -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
|
||||
~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user