refactor: improve typings and docs related to threads (#5991)

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
Shubham Parihar
2021-07-04 01:08:38 +05:30
committed by GitHub
parent 7e3001191c
commit 4bf49809f2
4 changed files with 94 additions and 76 deletions

View File

@@ -47,7 +47,7 @@ class ThreadMember extends Base {
}
/**
* The guild member that this thread member instance represents
* The guild member associated with this thread member
* @type {?GuildMember}
* @readonly
*/
@@ -65,7 +65,7 @@ class ThreadMember extends Base {
}
/**
* The user that this thread member instance represents
* The user associated with this thread member
* @type {?User}
* @readonly
*/
@@ -83,7 +83,7 @@ class ThreadMember extends Base {
}
/**
* Remove this member from the thread.
* Removes this member from the thread.
* @param {string} [reason] Reason for removing the member
* @returns {ThreadMember}
*/