src/Utility/Discord/Collectors/MessageCollector.js
/**
     * Function bound to messageUpdate event.
     * Updates the message from all collectors that collected this message
     *
     * @param {Message} oldMsg
     * @param {Message} msg
     * @memberof MessageCollector
     */
Function bound to messageUpdate event.
Updates the message from all collectors that collected this message

@param {Message} oldMsg
@param {Message} msg
@memberof MessageCollector
Function bound to messageUpdate event . Updates the message from all collectors that collected this message @param { Message } oldMsg @param { Message } msg @memberof MessageCollector
_onMessageUpdate(oldMsg, msg) {
        if (!oldMsg) {
            return;
        }
        const collectors = this.getCollectors(msg);
        for (const c of collectors) {
            if (c.collected.has(msg.id) ) {
                c.collected.set(msg.id, msg);
            }
        }
    }
_onMessageUpdate ( oldMsg , msg ) { if ( ! oldMsg ) { return ; } const collectors = this . getCollectors ( msg ) ; for ( const c of collectors ) { if ( c . collected . has ( msg . id ) ) { c . collected . set ( msg . id , msg ) ; } } }
Function bound to messageUpdate event.
Function bound to messageUpdate event .