dist/lib/driver.js
function leaveRoom(room) {
    return __awaiter(this, void 0, void 0, function* () {
        let roomId = yield getRoomId(room);
        let joinedIndex = exports.joinedIds.indexOf(room);
        if (joinedIndex === -1) {
            log_1.logger.error(`[leaveRoom] failed because bot has not joined ${room}`);
        }
        else {
            yield asyncCall('leaveRoom', roomId);
            delete exports.joinedIds[joinedIndex];
        }
    });
}
function leaveRoom(room) {
    return __awaiter(this, void 0, void 0, function* () {
        let roomId = yield getRoomId(room);
        let joinedIndex = exports.joinedIds.indexOf(room);
        if (joinedIndex === -1) {
            log_1.logger.error(`[leaveRoom] failed because bot has not joined ${room}`);
        }
        else {
            yield asyncCall('leaveRoom', roomId);
            delete exports.joinedIds[joinedIndex];
        }
    });
}
function leaveRoom ( room ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { let roomId = yield getRoomId ( room ) ; let joinedIndex = exports . joinedIds . indexOf ( room ) ; if ( joinedIndex === - 1 ) { log_1 . logger . error ( ` ${ room } ` ) ; } else { yield asyncCall ( 'leaveRoom' , roomId ) ; delete exports . joinedIds [ joinedIndex ] ; } } ) ; }
Exit a room the bot has joined
Exit a room the bot has joined