Rename maxMessageCache -> messageCacheMaxSize

This commit is contained in:
Schuyler Cebulskie
2016-10-09 15:16:54 -04:00
parent a717b60417
commit 7a53f70978
4 changed files with 6 additions and 6 deletions

View File

@@ -364,8 +364,8 @@ class Client extends EventEmitter {
if (options.shardId !== 0 && options.shardId >= options.shardCount) {
throw new RangeError('The shardId option must be less than shardCount.');
}
if (typeof options.maxMessageCache !== 'number' || isNaN(options.maxMessageCache)) {
throw new TypeError('The maxMessageCache option must be a number.');
if (typeof options.messageCacheMaxSize !== 'number' || isNaN(options.messageCacheMaxSize)) {
throw new TypeError('The messageCacheMaxSize option must be a number.');
}
if (typeof options.messageCacheLifetime !== 'number' || isNaN(options.messageCacheLifetime)) {
throw new TypeError('The messageCacheLifetime option must be a number.');