diff --git a/typings/index.d.ts b/typings/index.d.ts index 71b78d27f..a450f298d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1746,7 +1746,7 @@ export class Shard extends EventEmitter { public ready: boolean; public worker: Worker | null; public eval(script: string): Promise; - public eval(fn: (client: Client) => T): Promise; + public eval(fn: (client: Client) => T): Promise; public fetchClientValue(prop: string): Promise; public kill(): void; public respawn(options?: { delay?: number; timeout?: number }): Promise; diff --git a/typings/tests.ts b/typings/tests.ts index 40de09e17..f9c6bd9bc 100644 --- a/typings/tests.ts +++ b/typings/tests.ts @@ -76,6 +76,7 @@ import { Typing, User, VoiceChannel, + Shard, } from '.'; import type { ApplicationCommandOptionTypes } from './enums'; @@ -1050,3 +1051,7 @@ client.on('interactionCreate', async interaction => { assertType(interaction.options.getSubcommandGroup(false)); } }); + +declare const shard: Shard; + +assertType>(shard.eval(c => c.readyTimestamp));