src/Core/Event/EventManager.js
/**
     * Bind every handler to the correct Discord event and start listening to this event.
     * @memberof EventManager
     */
Bind every handler to the correct Discord event and start listening to this event.
Bind every handler to the correct Discord event and start listening to this event .
bindHandlers() {
        for (const [event, handler] of this._handlers) {
            this.bot.on(event, handler._handle);
            this.logger.info(`[EVT] => Bound ${handler.size} listener${handler.size > 1 ? 's' : ''} for ${handler.name}`);
        }
    }
bindHandlers ( ) { for ( const [ event , handler ] of this . _handlers ) { this . bot . on ( event , handler . _handle ) ; this . logger . info ( ` ${ handler . size } ${ handler . size > 1 ? 's' : '' } ${ handler . name } ` ) ; } }
Bind every handler to the correct Discord event and start listening to this event.
Bind every handler to the correct Discord event and start listening to this event .
// bind handler to event emission