Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
ShardingManager
Class ShardingManager
Hierarchy
ShardingManager
Index
Constructors
constructor
Properties
client
gateway
Info
options
token
workers
Methods
handle
Message
respawn
spawn
Constructors
constructor
new
Sharding
Manager
(
token
:
string
, options
:
ShardingManagerOptions
)
:
ShardingManager
Parameters
token:
string
options:
ShardingManagerOptions
Returns
ShardingManager
Properties
client
client
:
RESTClient
gateway
Info
gateway
Info
:
APIGatewayBotInfo
options
options
:
ShardingManagerOptions
token
token
:
string
workers
workers
:
Map
<
number
,
ChildProcess
|
Worker
>
= ...
Methods
handle
Message
handle
Message
(
d
:
any
, id
:
number
)
:
void
Parameters
d:
any
id:
number
Returns
void
respawn
respawn
(
id
:
number
)
:
void
Parameters
id:
number
Returns
void
spawn
spawn
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Exports
Internals
Tokens
Externals
Types
Sharding
Manager
constructor
client
gateway
Info
options
token
workers
handle
Message
respawn
spawn
Generated using
TypeDoc