mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
feat(Shard): add eval context (#7011)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -1867,6 +1867,7 @@ export class Shard extends EventEmitter {
|
||||
public worker: Worker | null;
|
||||
public eval(script: string): Promise<unknown>;
|
||||
public eval<T>(fn: (client: Client) => T): Promise<T>;
|
||||
public eval<T, P>(fn: (client: Client, context: Serialized<P>) => T, context: P): Promise<T>;
|
||||
public fetchClientValue(prop: string): Promise<unknown>;
|
||||
public kill(): void;
|
||||
public respawn(options?: { delay?: number; timeout?: number }): Promise<ChildProcess>;
|
||||
|
||||
Reference in New Issue
Block a user