Class ShardClientUtil

Hierarchy

  • ShardClientUtil

Constructors

Properties

client: Client<boolean>
parentPort: null | MessagePort

Accessors

  • get count(): number
  • Returns number

  • get ids(): number[]
  • Returns number[]

Methods

  • Parameters

    • message: unknown

    Returns void

  • Parameters

    • type: string
    • message: unknown

    Returns void

  • Type Parameters

    • Result

    Parameters

    Returns Promise<Serialized<Result>[]>

  • Type Parameters

    • Result

    Parameters

    • fn: ((client) => Awaitable<Result>)
    • options: {
          shard: number;
      }
      • shard: number

    Returns Promise<Serialized<Result>>

  • Type Parameters

    • Result

    • Context

    Parameters

    • fn: ((client, context) => Awaitable<Result>)
    • options: {
          context: Context;
      }
      • context: Context

    Returns Promise<Serialized<Result>[]>

  • Type Parameters

    • Result

    • Context

    Parameters

    • fn: ((client, context) => Awaitable<Result>)
    • options: {
          context: Context;
          shard: number;
      }
      • context: Context
      • shard: number

    Returns Promise<Serialized<Result>>

  • Parameters

    • emitter: EventEmitter<DefaultEventMap> | ChildProcess

    Returns void

  • Parameters

    • prop: string

    Returns Promise<unknown[]>

  • Parameters

    • prop: string
    • shard: number

    Returns Promise<unknown>

  • Parameters

    • emitter: EventEmitter<DefaultEventMap> | ChildProcess

    Returns void

  • Parameters

    Returns Promise<void>

  • Parameters

    • message: unknown

    Returns Promise<void>

  • Parameters

    • guildId: string
    • shardCount: number

    Returns number

Generated using TypeDoc