diff --git a/src/util/Constants.js b/src/util/Constants.js index 6204e707e1fb..d35ecf47d2fa 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -622,6 +622,8 @@ exports.VerificationLevels = ['NONE', 'LOW', 'MEDIUM', 'HIGH', 'VERY_HIGH']; * * MAXIMUM_CHANNELS * * MAXIMUM_ATTACHMENTS * * MAXIMUM_INVITES + * * MAXIMUM_ANIMATED_EMOJIS + * * MAXIMUM_SERVER_MEMBERS * * GUILD_ALREADY_HAS_TEMPLATE * * UNAUTHORIZED * * ACCOUNT_VERIFICATION_REQUIRED @@ -691,6 +693,8 @@ exports.APIErrors = { MAXIMUM_CHANNELS: 30013, MAXIMUM_ATTACHMENTS: 30015, MAXIMUM_INVITES: 30016, + MAXIMUM_ANIMATED_EMOJIS: 30018, + MAXIMUM_SERVER_MEMBERS: 30019, GUILD_ALREADY_HAS_TEMPLATE: 30031, UNAUTHORIZED: 40001, ACCOUNT_VERIFICATION_REQUIRED: 40002, diff --git a/typings/index.d.ts b/typings/index.d.ts index f83c7f7121db..ee6cad346222 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1653,8 +1653,14 @@ declare module 'discord.js' { public readonly ids: number[]; public mode: ShardingManagerMode; public parentPort: any | null; - public broadcastEval(fn: (client: Client, context: P) => T, { shard: undefined, context: P }?: BroadcastEvalOptions): Promise; - public broadcastEval(fn: (client: Client, context: P) => T, { shard: number, context: P }: BroadcastEvalOptions): Promise; + public broadcastEval( + fn: (client: Client, context: P) => T, + { shard: undefined, context: P }?: BroadcastEvalOptions, + ): Promise; + public broadcastEval( + fn: (client: Client, context: P) => T, + { shard: number, context: P }: BroadcastEvalOptions, + ): Promise; public fetchClientValues(prop: string): Promise; public fetchClientValues(prop: string, shard: number): Promise; public respawnAll(options?: { shardDelay?: number; respawnDelay?: number; timeout?: number }): Promise; @@ -1677,8 +1683,14 @@ declare module 'discord.js' { public totalShards: number | 'auto'; public shardList: number[] | 'auto'; public broadcast(message: any): Promise; - public broadcastEval(fn: (client: Client, context: P) => T, { shard: undefined, context: P }?: BroadcastEvalOptions): Promise; - public broadcastEval(fn: (client: Client, context: P) => T, { shard: number, context: P }: BroadcastEvalOptions): Promise; + public broadcastEval( + fn: (client: Client, context: P) => T, + { shard: undefined, context: P }?: BroadcastEvalOptions, + ): Promise; + public broadcastEval( + fn: (client: Client, context: P) => T, + { shard: number, context: P }: BroadcastEvalOptions, + ): Promise; public createShard(id: number): Shard; public fetchClientValues(prop: string): Promise; public fetchClientValues(prop: string, shard: number): Promise; @@ -1946,9 +1958,7 @@ declare module 'discord.js' { ): Promise; public fetchMessage(message: Snowflake, cache?: boolean): Promise; public send(options: string | APIMessage | (WebhookMessageOptions & { split?: false })): Promise; - public send( - options: APIMessage | (WebhookMessageOptions & { split: true | SplitOptions }), - ): Promise; + public send(options: APIMessage | (WebhookMessageOptions & { split: true | SplitOptions })): Promise; } export class WebSocketManager extends EventEmitter { @@ -2125,8 +2135,18 @@ declare module 'discord.js' { name: string, options: GuildCreateChannelOptions, ): Promise; - public fetch(id: Snowflake, cache?: boolean, force?: boolean): Promise; - public fetch(id?: Snowflake, cache?: boolean, force?: boolean): Promise>; + public fetch( + id: Snowflake, + cache?: boolean, + force?: boolean, + ): Promise; + public fetch( + id?: Snowflake, + cache?: boolean, + force?: boolean, + ): Promise< + Collection + >; } export class GuildEmojiManager extends BaseGuildEmojiManager { @@ -2404,6 +2424,8 @@ declare module 'discord.js' { MAXIMUM_CHANNELS: 30013; MAXIMUM_ATTACHMENTS: 30015; MAXIMUM_INVITES: 30016; + MAXIMUM_ANIMATED_EMOJIS: 30018; + MAXIMUM_SERVER_MEMBERS: 30019; GUILD_ALREADY_HAS_TEMPLATE: 30031; UNAUTHORIZED: 40001; ACCOUNT_VERIFICATION_REQUIRED: 40002;