mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
refactor(*): use async functions (#6210)
This commit is contained in:
@@ -87,8 +87,9 @@ class ThreadMember extends Base {
|
||||
* @param {string} [reason] Reason for removing the member
|
||||
* @returns {ThreadMember}
|
||||
*/
|
||||
remove(reason) {
|
||||
return this.thread.members.remove(this.id, reason).then(() => this);
|
||||
async remove(reason) {
|
||||
await this.thread.members.remove(this.id, reason);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user