refactor(Client): remove fetchAllMembers option (#5257)

* feat(Client): remove fetchAllMembers option & logic

* Cleanup

* Missed type change
This commit is contained in:
Matt (IPv4) Cowley
2021-01-27 10:27:50 +00:00
committed by GitHub
parent 41bd6c2717
commit aaed72b723
7 changed files with 22 additions and 39 deletions

View File

@@ -463,9 +463,6 @@ class Client extends BaseClient {
if (typeof options.messageSweepInterval !== 'number' || isNaN(options.messageSweepInterval)) {
throw new TypeError('CLIENT_INVALID_OPTION', 'messageSweepInterval', 'a number');
}
if (typeof options.fetchAllMembers !== 'boolean') {
throw new TypeError('CLIENT_INVALID_OPTION', 'fetchAllMembers', 'a boolean');
}
if (!Array.isArray(options.partials)) {
throw new TypeError('CLIENT_INVALID_OPTION', 'partials', 'an Array');
}