mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 21:43:33 +01:00
feat(LimitedCollection): export LimitedCollection (#6043)
* feat(LimitedCollection): export LimitedCollection * fix: remove @private * fix: typings
This commit is contained in:
@@ -21,6 +21,7 @@ module.exports = {
|
|||||||
DiscordAPIError: require('./rest/DiscordAPIError'),
|
DiscordAPIError: require('./rest/DiscordAPIError'),
|
||||||
HTTPError: require('./rest/HTTPError'),
|
HTTPError: require('./rest/HTTPError'),
|
||||||
RateLimitError: require('./rest/RateLimitError'),
|
RateLimitError: require('./rest/RateLimitError'),
|
||||||
|
LimitedCollection: require('./util/LimitedCollection'),
|
||||||
MessageFlags: require('./util/MessageFlags'),
|
MessageFlags: require('./util/MessageFlags'),
|
||||||
Intents: require('./util/Intents'),
|
Intents: require('./util/Intents'),
|
||||||
Options: require('./util/Options'),
|
Options: require('./util/Options'),
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ const Collection = require('./Collection.js');
|
|||||||
* @extends {Collection}
|
* @extends {Collection}
|
||||||
* @param {number} [maxSize=0] The maximum size of the Collection
|
* @param {number} [maxSize=0] The maximum size of the Collection
|
||||||
* @param {Iterable} [iterable=null] Optional entries passed to the Map constructor.
|
* @param {Iterable} [iterable=null] Optional entries passed to the Map constructor.
|
||||||
* @private
|
|
||||||
*/
|
*/
|
||||||
class LimitedCollection extends Collection {
|
class LimitedCollection extends Collection {
|
||||||
constructor(maxSize = 0, iterable = null) {
|
constructor(maxSize = 0, iterable = null) {
|
||||||
|
|||||||
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
@@ -911,6 +911,11 @@ export class InviteGuild extends AnonymousGuild {
|
|||||||
public welcomeScreen: WelcomeScreen | null;
|
public welcomeScreen: WelcomeScreen | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class LimitedCollection<K, V> extends Collection<K, V> {
|
||||||
|
public constructor(maxSize?: number, iterable?: Iterable<readonly [K, V]>);
|
||||||
|
public maxSize: number;
|
||||||
|
}
|
||||||
|
|
||||||
export class Message extends Base {
|
export class Message extends Base {
|
||||||
public constructor(client: Client, data: unknown, channel: TextChannel | DMChannel | NewsChannel | ThreadChannel);
|
public constructor(client: Client, data: unknown, channel: TextChannel | DMChannel | NewsChannel | ThreadChannel);
|
||||||
private patch(data: unknown): Message;
|
private patch(data: unknown): Message;
|
||||||
|
|||||||
Reference in New Issue
Block a user