refactor(UserManager): Move methods to the manager (#7087)

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Jiralite
2021-12-22 13:25:52 +00:00
committed by GitHub
parent a0a5b0e4fa
commit 2ed02f7fc7
4 changed files with 99 additions and 44 deletions

View File

@@ -318,10 +318,11 @@ class GuildMember extends Base {
/**
* Creates a DM channel between the client and this member.
* @param {boolean} [force=false] Whether to skip the cache check and request the API
* @returns {Promise<DMChannel>}
*/
createDM() {
return this.user.createDM();
createDM(force = false) {
return this.user.createDM(force);
}
/**