@@ -89,7 +89,7 @@ declare module 'discord-hybrid-sharding' {
89
89
public fetchClientValues ( prop : string ) : Promise < any [ ] > ;
90
90
public fetchClientValues ( prop : string , cluster : number ) : Promise < any > ;
91
91
public send ( message : any ) : Promise < void > ;
92
- public request ( message : Object ) : Promise < BaseMessage > ;
92
+ public request ( message : object ) : Promise < BaseMessage > ;
93
93
public respawnAll ( options ?: ClusterRespawnOptions ) : Promise < void > ;
94
94
95
95
public triggerReady ( ) : Promise < void > ;
@@ -116,8 +116,12 @@ declare module 'discord-hybrid-sharding' {
116
116
interval ?: number ;
117
117
current ?: number ;
118
118
} ;
119
- clusterData ?: Object ;
120
- clusterOptions ?: Object ;
119
+ clusterData ?: object ;
120
+ clusterOptions ?: object ;
121
+ spawnOptions ?: {
122
+ delay ?: number ;
123
+ timeout ?: number ;
124
+ } ;
121
125
}
122
126
123
127
export class Manager extends EventEmitter {
@@ -128,8 +132,8 @@ declare module 'discord-hybrid-sharding' {
128
132
129
133
public file : string ;
130
134
public respawn : boolean ;
131
- public clusterData : Object ;
132
- public clusterOptions : Object ;
135
+ public clusterData : object ;
136
+ public clusterOptions : object ;
133
137
public shardArgs : string [ ] ;
134
138
public clusters : Map < number , Cluster > ;
135
139
public token : string | null ;
@@ -163,7 +167,7 @@ declare module 'discord-hybrid-sharding' {
163
167
public fetchClientValues ( prop : string ) : Promise < any [ ] > ;
164
168
public fetchClientValues ( prop : string , cluster : number ) : Promise < any > ;
165
169
public evalOnManager ( script : string ) : Promise < any [ ] > ;
166
- private evalOnCluster ( script : string , options : Object ) : Promise < any [ ] > ;
170
+ private evalOnCluster ( script : string , options : object ) : Promise < any [ ] > ;
167
171
public respawnAll ( options ?: ClusterRespawnOptions ) : Promise < Map < number , Cluster > > ;
168
172
public spawn ( options ?: ClusterSpawnOptions ) : Promise < Map < number , Cluster > > ;
169
173
public triggerMaintenance ( reason : string ) : any ;
@@ -179,16 +183,16 @@ declare module 'discord-hybrid-sharding' {
179
183
export class BaseMessage {
180
184
public _sCustom : true ;
181
185
public nonce : String ;
182
- private destructMessage ( message : Object ) : Promise < Object > ;
183
- public toJSON ( ) : Promise < Object > ;
186
+ private destructMessage ( message : object ) : Promise < object > ;
187
+ public toJSON ( ) : Promise < object > ;
184
188
}
185
189
186
190
export class IPCMessage {
187
191
public instance : Cluster | Client ;
188
192
public raw : BaseMessage ;
189
- public send ( message : Object ) : Promise < Cluster | Client > ;
190
- public request ( message : Object ) : Promise < Object > ;
191
- public reply ( message : Object ) : Promise < Object > ;
193
+ public send ( message : object ) : Promise < Cluster | Client > ;
194
+ public request ( message : object ) : Promise < object > ;
195
+ public reply ( message : object ) : Promise < object > ;
192
196
}
193
197
194
198
export type data = {
0 commit comments