mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
refactor: make LimitedCollection an implementation detail (#3872)
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -1914,11 +1914,6 @@ declare module 'discord.js' {
|
||||
public toJSON(): object;
|
||||
}
|
||||
|
||||
export class LimitedCollection<K, V> extends Collection<K, V> {
|
||||
public constructor(maxSize: number, iterable: Iterable<any>);
|
||||
public maxSize: number;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Managers
|
||||
@@ -2016,7 +2011,7 @@ declare module 'discord.js' {
|
||||
export class MessageManager extends BaseManager<Snowflake, Message, MessageResolvable> {
|
||||
constructor(channel: TextChannel | DMChannel, iterable?: Iterable<any>);
|
||||
public channel: TextBasedChannelFields;
|
||||
public cache: LimitedCollection<Snowflake, Message>;
|
||||
public cache: Collection<Snowflake, Message>;
|
||||
public fetch(message: Snowflake, cache?: boolean): Promise<Message>;
|
||||
public fetch(options?: ChannelLogsQueryOptions, cache?: boolean): Promise<Collection<Snowflake, Message>>;
|
||||
public fetchPinned(cache?: boolean): Promise<Collection<Snowflake, Message>>;
|
||||
|
||||
Reference in New Issue
Block a user