Document readonly and private properties (#1338)

This commit is contained in:
SpaceEEC
2017-04-03 20:05:36 +02:00
committed by Crawl
parent 4be08406e6
commit ecb8655dac
12 changed files with 16 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ class User {
/**
* The DM between the client's user and this user
* @type {?DMChannel}
* @readonly
*/
get dmChannel() {
return this.client.channels.filter(c => c.type === 'dm').find(c => c.recipient.id === this.id);