mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Rename maxMessageCache -> messageCacheMaxSize
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user