feat(APIMessage): remove disableMentions (#4836)

* chore: remove disableMentions

* style: fix eslint
This commit is contained in:
Advaith
2020-12-14 04:51:31 -08:00
committed by GitHub
parent 9c7fe34c50
commit 41078997ae
8 changed files with 1 additions and 94 deletions

View File

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