Discord Player

PlayerEventsEmitter

No description provided

PlayerEventsEmitter extends EventEmitter<L>

new PlayerEventsEmitter(requiredEvents);
ParameterTypeOptional
requiredEventsArray<keyof L>

Properties

public requiredEvents: any

public static defaultMaxListeners: any

public hasDebugger: any

Methods

public addListener(name, listener): PlayerEventsEmitter<L>

ParameterTypeOptional
nameK
listenerL[K]

public emit(name, args): boolean

ParameterTypeOptional
nameK
argsParameters<L[K]>

public eventNames(): Array<U>

public getMaxListeners(): number

public listenerCount(type): number

ParameterTypeOptional
typekeyof L

public listeners(type): Array<L[U]>

ParameterTypeOptional
typeU

public off(name, listener): PlayerEventsEmitter<L>

ParameterTypeOptional
nameK
listenerL[K]

public on(name, listener): PlayerEventsEmitter<L>

ParameterTypeOptional
nameK
listenerL[K]

public once(name, listener): PlayerEventsEmitter<L>

ParameterTypeOptional
nameK
listenerL[K]

public prependListener(event, listener): this

ParameterTypeOptional
eventU
listenerL[U]

public prependOnceListener(event, listener): this

ParameterTypeOptional
eventU
listenerL[U]

public rawListeners(type): Array<L[U]>

ParameterTypeOptional
typeU

public removeAllListeners(name?): PlayerEventsEmitter<L>

ParameterTypeOptional
nameK

public removeListener(name, listener): PlayerEventsEmitter<L>

ParameterTypeOptional
nameK
listenerL[K]

public setMaxListeners(n): this

ParameterTypeOptional
nnumber