mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Add support for notes (#860)
* Add support for notes * Ensure consistency with notes from ready payload * Add getter method for users * Minor tweaks * Update warning messages * More minor fixes
This commit is contained in:
committed by
Schuyler Cebulskie
parent
a673a97441
commit
6dc95cd084
@@ -616,6 +616,11 @@ class RESTMethods {
|
||||
new ClientOAuth2Application(this.rest.client, app)
|
||||
);
|
||||
}
|
||||
|
||||
setNote(user, note) {
|
||||
return this.rest.makeRequest('put', Constants.Endpoints.note(user.id), true, { note })
|
||||
.then(() => user);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = RESTMethods;
|
||||
|
||||
Reference in New Issue
Block a user