3. User Note
Credit: Discord S.C.U.M
This commit is contained in:
@@ -39,6 +39,7 @@ class User extends Base {
|
||||
this.premiumGuildSince = null;
|
||||
this.mutualGuilds = new Collection();
|
||||
this.applications = null;
|
||||
this.note = null;
|
||||
this._patch(data);
|
||||
}
|
||||
|
||||
@@ -422,6 +423,13 @@ class User extends Base {
|
||||
return json;
|
||||
}
|
||||
|
||||
async setNote(note = null) {
|
||||
await this.client.api.users['@me']
|
||||
.notes(id)
|
||||
.put({ data: { note } });
|
||||
return this.note = note;
|
||||
}
|
||||
|
||||
// These are here only for documentation purposes - they are implemented by TextBasedChannel
|
||||
/* eslint-disable no-empty-function */
|
||||
send() {}
|
||||
|
Reference in New Issue
Block a user