PostconditionManager

class

PostconditionManager

source
export class PostconditionManager
export class PostconditionManager
constructor(client: Client, postconditions?: Iterable<CommandPostcondition.Resolvable>)
constructor(client: Client, postconditions?: Iterable<CommandPostcondition.Resolvable>)
ParamTypeRequired
client
client
Client
Client
Yes
postconditions
postconditions
Iterable<CommandPostcondition.Resolvable>
Iterable<CommandPostcondition.Resolvable>
No
public async source

.execute(...)

execute<T extends CommandType, D>(options: PostconditionManager.ExecuteOptions<T, D>): Promise<PostconditionResultManager<T, D>>
execute<T extends CommandType, D>(options: PostconditionManager.ExecuteOptions<T, D>): Promise<PostconditionResultManager<T, D>>
ParamTypeRequired
options
options
PostconditionManager.ExecuteOptions<T, D>
PostconditionManager.ExecuteOptions<T, D>
Yes

Returns:

Promise<PostconditionResultManager<T, D>>
Promise<PostconditionResultManager<T, D>>

private source

.emitOrThrow(...)

emitOrThrow<K extends keyof PostconditionManager.Events>(event: K, ...args: PostconditionManager.Events[K]): boolean
emitOrThrow<K extends keyof PostconditionManager.Events>(event: K, ...args: PostconditionManager.Events[K]): boolean
ParamTypeRequired
event
event
K
K
Yes
...args
...args
PostconditionManager.Events[K]
PostconditionManager.Events[K]
No

Returns:

boolean
boolean

public source

.holds