cleanup: fix deepscan issues (#3740)

* fix: don't double check if shards are auto.

* fix: remove useless roles array.

* fix: remove useless undefined checks.

* fix: remove useless `this` binding

* Apply suggestions from code review

Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com>

* Fix: Space's suggestion

* Fix: time is always truthy

* Check if it's an invalid date.

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
Gryffon Bellish
2020-01-24 10:58:23 -05:00
committed by SpaceEEC
parent 929ff9ccd0
commit b81f771007
5 changed files with 7 additions and 6 deletions

View File

@@ -775,6 +775,7 @@ class Guild extends Base {
}
roles.push(role.id);
}
options.roles = roles;
}
return this.client.api.guilds(this.id).members(user).put({ data: options })
.then(data => this.members.add(data));